Skip to content

mnsSpacesTool


=== 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


MnsSpacesTool [Class]

Spaces Tool UI Class.


Constructor: MnsSpacesTool(parent(str) ; [default: mnsUIUtils.get_maya_window()])
Inherits from: form_class, base_class
Class Members:
    • mayaSelectCallBack
    • mayaTimeChangedCallBack
    • limbs
    • spaceCtrls
Methods:

MnsSpacesTool methods


connectSignals [MnsSpacesTool class method]


Connect all UI Signals.

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

eventFilter [MnsSpacesTool class method]


Override event filter to catch the close trigger to delete the callback

Constructor: eventFilter(self, source, event)
Return: None
Arguments:
  • self
  • source
  • event
Optional Arguments:

fkIKSwitch [MnsSpacesTool class method]


mode 0 - Match FK to IK

mode 1 - Match IK to FK

Constructor: fkIKSwitch(self, mode = 0)
Return: None
Arguments:
  • self
  • mode(int) ; [default: 0]
Optional Arguments:

getFramesListFromUIState [MnsSpacesTool class method]

Constructor: getFramesListFromUIState(self, hostCtrl = None, attrName = "")
Return: None
Arguments:
  • self
  • hostCtrl(str) ; [default: None]
  • attrName(str) ; [default: ""]
Optional Arguments:

getSpaceEnumIndexByName [MnsSpacesTool class method]

Constructor: getSpaceEnumIndexByName(self, node, attr, targetSpaceName)
Return: None
Arguments:
  • self
  • node
  • attr
  • targetSpaceName
Optional Arguments:

initializeView [MnsSpacesTool class method]

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

insertCallbacks [MnsSpacesTool class method]

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

loadWindow [MnsSpacesTool class method]


Show window method.

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

removeCallbacks [MnsSpacesTool class method]

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

sceneSelectionChanged [MnsSpacesTool class method]

Constructor: sceneSelectionChanged(self, dummy = None)
Return: None
Arguments:
  • self
  • dummy(str) ; [default: None]
Optional Arguments:

selectIKFKHost [MnsSpacesTool class method]

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

setAutoKeyMode [MnsSpacesTool class method]

Constructor: setAutoKeyMode(self, state)
Return: None
Arguments:
  • self
  • state
Optional Arguments:

setAvailbleLimbs [MnsSpacesTool class method]

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

setAvailbleSpaces [MnsSpacesTool class method]

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

setIKFKView [MnsSpacesTool class method]

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

setSequenceMode [MnsSpacesTool class method]

Constructor: setSequenceMode(self, state)
Return: None
Arguments:
  • self
  • state
Optional Arguments:

setSequenceRange [MnsSpacesTool class method]

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

setSpacesMode [MnsSpacesTool class method]

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

setSpacesView [MnsSpacesTool class method]

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

spaceSwitch [MnsSpacesTool class method]

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


Defenitions


loadSpacesTool

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


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