Skip to content

mnsAnimationExporter


=== Author: Assaf Ben Zur ===

This simple animation tool was created to allow animators to space switch and IK->FK switch easily.

This tool is selection based. Please select controls to enable relevant capabilities.

For spaces, simply select the controls you want to act upon, choose your target spaces, and press "switch". This will switch the space, while maintaining the controls's transforms, using keys created automatically.

For Limbs, simple select any control/s for the limbs that you wish to act upon, and press the relevant button- To-IK or To-FK.

This will switch the limb/controls to the selected state.

This tool also includes Auto-Key switches, as well as a sequence and bake modes.



Classes


ExtraAttributesListWidget [Class]

A simple QPushButton re-implementation.

This reimplementation is used to control the button's mouse events, used in 'Edit' mode.


Constructor: ExtraAttributesListWidget(parent(str) ; [default: None],default_extraAttrs(list) ; [default: []],**kwargs)
Inherits from: QtWidgets.QListWidget
Class Members:
    • parent
    • acceptedAttributeTypes
Methods:

ExtraAttributesListWidget methods


addAttributesToList [ExtraAttributesListWidget class method]

Constructor: addAttributesToList(self, **kwargs)
Return: None
Arguments:
  • self
  • **kwargs
Optional Arguments:

copyList [ExtraAttributesListWidget class method]

Constructor: copyList(self)
Return: None
Arguments:
  • self
Optional Arguments:

getItems [ExtraAttributesListWidget class method]

Constructor: getItems(self)
Return: None
Arguments:
  • self
Optional Arguments:

openExtraAttrsMenu [ExtraAttributesListWidget class method]

Constructor: openExtraAttrsMenu(self, position)
Return: None
Arguments:
  • self
  • position
Optional Arguments:

pasteList [ExtraAttributesListWidget class method]

Constructor: pasteList(self, **kwargs)
Return: None
Arguments:
  • self
  • **kwargs
Optional Arguments:

removeSelectedItems [ExtraAttributesListWidget class method]

Constructor: removeSelectedItems(self)
Return: None
Arguments:
  • self
Optional Arguments:

validateAttribute [ExtraAttributesListWidget class method]

Constructor: validateAttribute(self, node, attributeName)
Return: None
Arguments:
  • self
  • node
  • attributeName
Optional Arguments:


MnsAnimationExporter [Class]

Spaces Tool UI Class.


Constructor: MnsAnimationExporter(parent(str) ; [default: mnsUIUtils.get_maya_window()])
Inherits from: form_class, base_class
Class Members:
    • rigTabsPairing
    • infoNode
    • ranges_vs
    • extraAttrsClipboard
Methods:

MnsAnimationExporter methods


addRange [MnsAnimationExporter class method]

Constructor: addRange(self, **kwargs)
Return: None
Arguments:
  • self
  • **kwargs
Optional Arguments:

addRig [MnsAnimationExporter class method]

Constructor: addRig(self, **kwargs)
Return: None
Arguments:
  • self
  • **kwargs
Optional Arguments:

bakeExtraAttributes [MnsAnimationExporter class method]

Constructor: bakeExtraAttributes(self, rng, host)
Return: None
Arguments:
  • self
  • rng
  • host
Optional Arguments:

connectSignals [MnsAnimationExporter class method]


Connect all UI Signals.

Constructor: connectSignals(self)
Return: None
Arguments:
  • self
Optional Arguments:

delData [MnsAnimationExporter class method]

Constructor: delData(self)
Return: None
Arguments:
  • self
Optional Arguments:

deleteRange [MnsAnimationExporter class method]

Constructor: deleteRange(self)
Return: None
Arguments:
  • self
Optional Arguments:

deleteRig [MnsAnimationExporter class method]

Constructor: deleteRig(self)
Return: None
Arguments:
  • self
Optional Arguments:

export [MnsAnimationExporter class method]

Constructor: export(self)
Return: None
Arguments:
  • self
Optional Arguments:

extractSkeletonFromRigTop [MnsAnimationExporter class method]

Constructor: extractSkeletonFromRigTop(self, rigTop, extractMode, rotToJointOrient, includeMeshes, messageLog)
Return: None
Arguments:
  • self
  • rigTop
  • extractMode
  • rotToJointOrient
  • includeMeshes
  • messageLog
Optional Arguments:

gatherData [MnsAnimationExporter class method]

Constructor: gatherData(self)
Return: None
Arguments:
  • self
Optional Arguments:

getRangePath [MnsAnimationExporter class method]

Constructor: getRangePath(self, lineEditWidget)
Return: None
Arguments:
  • self
  • lineEditWidget
Optional Arguments:

getSkinnedMeshesFromJntHeirarchy [MnsAnimationExporter class method]

Constructor: getSkinnedMeshesFromJntHeirarchy(self, origRootJnt)
Return: None
Arguments:
  • self
  • origRootJnt
Optional Arguments:

getUnusedJoints [MnsAnimationExporter class method]

Constructor: getUnusedJoints(self, rootJnt, skinData)
Return: None
Arguments:
  • self
  • rootJnt
  • skinData
Optional Arguments:

initializeView [MnsAnimationExporter class method]

Constructor: initializeView(self)
Return: None
Arguments:
  • self
Optional Arguments:

initializeWidgets [MnsAnimationExporter class method]

Constructor: initializeWidgets(self)
Return: None
Arguments:
  • self
Optional Arguments:

loadUIInfo [MnsAnimationExporter class method]

Constructor: loadUIInfo(self)
Return: None
Arguments:
  • self
Optional Arguments:

loadWSAnimData [MnsAnimationExporter class method]

Constructor: loadWSAnimData(self, animData)
Return: None
Arguments:
  • self
  • animData
Optional Arguments:

loadWindow [MnsAnimationExporter class method]


Show window method.

Constructor: loadWindow(self)
Return: None
Arguments:
  • self
Optional Arguments:

random_color [MnsAnimationExporter class method]

Constructor: random_color(self)
Return: None
Arguments:
  • self
Optional Arguments:

recIsMdlGrpParent [MnsAnimationExporter class method]

Constructor: recIsMdlGrpParent(self, node)
Return: None
Arguments:
  • self
  • node
Optional Arguments:

resetRootJnt [MnsAnimationExporter class method]

Constructor: resetRootJnt(self, extractedRootJnt)
Return: None
Arguments:
  • self
  • extractedRootJnt
Optional Arguments:

resetUI [MnsAnimationExporter class method]

Constructor: resetUI(self)
Return: None
Arguments:
  • self
Optional Arguments:

restructureJointHeirarchy [MnsAnimationExporter class method]

Constructor: restructureJointHeirarchy(self, rootJnt, unusedInfluences)
Return: None
Arguments:
  • self
  • rootJnt
  • unusedInfluences
Optional Arguments:

saveWSAnimData [MnsAnimationExporter class method]

Constructor: saveWSAnimData(self, joints, rangeMin, rangeMax)
Return: None
Arguments:
  • self
  • joints
  • rangeMin
  • rangeMax
Optional Arguments:

setRangeMode [MnsAnimationExporter class method]

Constructor: setRangeMode(self, widgets, isAsset)
Return: None
Arguments:
  • self
  • widgets
  • isAsset
Optional Arguments:

storeData [MnsAnimationExporter class method]

Constructor: storeData(self)
Return: None
Arguments:
  • self
Optional Arguments:

validateUIInfoNode [MnsAnimationExporter class method]

Constructor: validateUIInfoNode(self)
Return: None
Arguments:
  • self
Optional Arguments:

writeDefaultData [MnsAnimationExporter class method]

Constructor: writeDefaultData(self, exportData = {})
Return: None
Arguments:
  • self
  • exportData(dict) ; [default: {}]
Optional Arguments:


Defenitions


loadAnimationExporter

Load the Def Serach UI from globals, avoid UI duplication.


Constructor: loadAnimationExporter()
Return: None
Arguments:
Keyword Arguments: