pymel.core.animation.ikSystem¶
- ikSystem(*args, **kwargs)¶
The ikSystem command is used to set the global snapping flag for handles and set the global solve flag for solvers. The standard edit (-e) and query (-q) flags are used for edit and query functions.
Flags:
Long Name / Short Name Argument Types Properties allowRotation / ar bool Set true to allow rotation of an ik handle with keys set on translation. autoPriority / ap bool set autoPriority for all ikHandles autoPriorityMC / apm bool set autoPriority for all multiChain handles autoPrioritySC / aps bool set autoPriority for all singleChain handles list / ls int, int returns the solver execution order when in query mode(list of strings) changes execution order when in edit mode (int old position, int new position) snap / sn bool Set global snapping solve / sol bool Set global solve solverTypes / st bool returns a list of valid solverTypes ( query only ) Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.ikSystem
Example:
import pymel.core as pm # Prints out the solver execution order # pm.ikSystem( q=True, ls=True ) # Result: [u'ikSCsolver', u'ikRPsolver', u'ikSplineSolver', u'hikSolver'] # # Moves solver on position 2 to position 1 in # the execution order list ( zero based index ) # pm.ikSystem( e=True, ls=(1, 0) )