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. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
autoPriority / ap | bool | ![]() |
|
|
|||
autoPriorityMC / apm | bool | ![]() |
|
|
|||
autoPrioritySC / aps | bool | ![]() |
|
|
|||
list / ls | int, int | ![]() ![]() |
|
|
|||
snap / sn | bool | ![]() ![]() |
|
|
|||
solve / sol | bool | ![]() ![]() |
|
|
|||
solverTypes / st | bool | ![]() |
|
|
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) )