keyframeReduction.utils module¶
-
class
keyframeReduction.utils.
UndoChunkContext
¶ Bases:
object
The undo context is used to combine a chain of commands into one undo. Can be used in combination with the “with” statement.
- with UndoChunkContext():
- # code
-
keyframeReduction.utils.
filterAnimationCurves
(animationCurves)¶ Loop all the animation curves an run the validation function to make sure the animation curves are suitable for reduction.
Parameters: animationCurves (list) – Returns: Animation curves Return type: list
-
keyframeReduction.utils.
filterAnimationCurvesByPlug
(animationCurves)¶ Parameters: animationCurves (list) – Returns: Filtered animation curves Return type: dict
-
keyframeReduction.utils.
floatRange
(start, end, step)¶ Parameters: - start (int/float) –
- end (int/float) –
- step (int/float) –
Returns: Float range
Return type: list
-
keyframeReduction.utils.
getAllAnimationCurves
()¶ Returns: All suitable animation curves in the current scene Return type: list
-
keyframeReduction.utils.
getSelectionAnimationCurves
()¶ Returns: Selection animation curves Return type: list
-
keyframeReduction.utils.
validateAnimationCurve
(animationCurve)¶ Check if the parsed animation curve can be reduces. Set driven keyframes and referenced animation curves will be ignored.
Parameters: animationCurve (str) – Returns: Validation state of the animation curve Return type: bool