keyframeReduction.ui module¶
-
class
keyframeReduction.ui.
AnimationCurvesFilterWidget
(parent)¶ Bases:
PySide.QtGui.QWidget
-
addPlugCheckbox
(plug)¶ Add a plug checkbox to the scroll layout. The checked state determines if the plugs animation curves are to be reduced.
Parameters: plug (str) –
-
clear
()¶ Remove all of the widgets from the layout apart from the last item which is a spacer item.
-
getAnimationCurves
()¶ Loop over the selected animation curves and only return the ones that have the checked state set to true.
Returns: Animation curves Return type: list
-
plugDefaults
¶ A list of default plugs that are presented in order in case they are part of the selected plugs. This ensures the keys that are most likely to be reduced to appear on top.
Returns: Default plugs Return type: list
-
plugFilteredAnimationCurves
¶ Returns: Filtered animation curves Return type: dict
-
plugMaxLength
¶ Returns: Max length of plug string Return type: int
-
plugStates
¶ A dictionary containing plugs as keys and its checked state as a value. This dictionary is used to maintain the checked state of plugs between selections.
Returns: Plug states Return type: dict
-
registerCallback
()¶ Register callback that will update the ui everytime the selection has changed.
-
removeCallback
()¶
-
selectAllAnimationCurves
()¶ Get all suitable animation curves in the scene and select them. Suitable curves are curves that are not referenced and not driven keys.
-
selectionChanged
(*args)¶ This function gets called each time the selection is changed. It will update the UI to reflect the selected animation curves.
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
updatePlugState
(plug, state)¶ Update the plugStates dictionary of the provided plug with the provided value. This will help the state persist between selection.
Parameters: - plug (str) –
- state (bool) –
-
-
class
keyframeReduction.ui.
CheckBox
(parent, text, state)¶ Bases:
PySide.QtGui.QCheckBox
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
keyframeReduction.ui.
Divider
(parent)¶ Bases:
PySide.QtGui.QFrame
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
keyframeReduction.ui.
Header
(parent, text)¶ Bases:
PySide.QtGui.QLabel
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
keyframeReduction.ui.
KeyframeReductionWidget
(parent)¶ Bases:
PySide.QtGui.QWidget
-
closeEvent
(event)¶
-
reduce
()¶ Get the animation curves and settings from the ui and reduce the keyframes on each of those animation curves using the provided settings.
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
keyframeReduction.ui.
LabelWidget
(parent, text, widget)¶ Bases:
PySide.QtGui.QWidget
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
keyframeReduction.ui.
ReductionSettingsWidget
(parent)¶ Bases:
PySide.QtGui.QWidget
-
getSettings
()¶ Returns: Reduce settings Return type: dict
-
reduceReleased
= <PySide.QtCore.Signal object>¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
keyframeReduction.ui.
getIconPath
(name)¶ Get an icon path based on file name. All paths in the XBMLANGPATH variable processed to see if the provided icon can be found.
Parameters: name (str) – Returns: Icon path Return type: str/None
-
keyframeReduction.ui.
mayaWindow
()¶ Get Maya’s main window.
Return type: QMainWindow
-
keyframeReduction.ui.
show
()¶