bakeInstancer.utils module¶
-
bakeInstancer.utils.
asMDagPath
(obj)¶ OpenMaya.MObject -> OpenMaya.MDagPath
Parameters: obj (OpenMaya.MObject) – Return type: OpenMaya.MDagPath
-
bakeInstancer.utils.
asMFnTransform
(dag)¶ OpenMaya.MDagPath -> OpenMaya.MFnTransform
Parameters: dag (OpenMaya.MDagPath) – Return type: OpenMaya.MFnTransform
-
bakeInstancer.utils.
asMObject
(path)¶ str -> OpenMaya.MObject
Parameters: path (str) – Path to Maya object Return type: OpenMaya.MObject
-
bakeInstancer.utils.
getFrameRange
()¶ Read the current playback options to get the start and end frame. Float values are converted to integers for baking reasons.
Returns: Start and end frame current playback options Return type: tuple
-
bakeInstancer.utils.
getInstancers
()¶ Get all instancer nodes in the scene.
Returns: Instancer node list Return type: list
-
bakeInstancer.utils.
keyTransform
(path, t)¶ Key transform, loop over translate, rotate and scale and set keys with their current value.
Parameters: - path (str) – path to Maya object
- t (int) – time
-
bakeInstancer.utils.
keyVisibility
(path, t, v)¶ Key visibility, will create a switch putting a a key with the specified value on the time parsed. But will also put the reverse value on t-1.
Parameters: - path (str) – path to Maya object
- t (int) – time
- v (int) – value