The joint context command (jointCtx) updates the parameters of the joint tool. The options for the tool will be set by the flags the user specifies.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
autoJointOrient (ajo) | unicode | ||
Specifies the joint orientation. Valid string choices are permutations of the axes; “none”, “xyz”, “yzx”, “zxy”, “xzy”, “yxz”, “zyx”. The first letter determines which axis is aligned with the bone.C: The default is “xyz”.Q: When queried, this flag returns a string. |
|||
autoPriorityH (apH) | bool | ||
|
|||
createIKHandle (ikh) | bool | ||
|
|||
degreeOfFreedomJ (dJ) | unicode | ||
Specifies the degrees of freedom for all of the joints created by the tool. Valid string choices are the free axes; “x”, “y”, “z”, “xy”, “xz”, “yz”, “xyz”, and “none”.C: The default is “xyz”.Q: When queried, this flag returns a string. |
|||
exists (ex) | bool | ||
|
|||
forceSolverH (fsH) | bool | ||
|
|||
image1 (i1) | unicode | ||
image2 (i2) | unicode | ||
image3 (i3) | unicode | ||
|
|||
jointAutoLimits (jal) | bool | ||
|
|||
jointOrientationJ (joJ) | float, float, float | ||
Sets the orientation of the joints created by the tool. If autoJointOrient in on, these values will be ignored.C: The default is 0 0 0.Q: When queried, this flag returns an array of three floats. |
|||
largeBoneLength (lbl) | float | ||
|
|||
largeBoneRadius (lbr) | float | ||
|
|||
poWeightH (pwH) | float | ||
|
|||
priorityH (pH) | int | ||
|
|||
scaleCompensateJ (scJ) | bool | ||
|
|||
scaleJ (sJ) | float, float, float | ||
|
|||
scaleOrientationJ (soJ) | float, float, float | ||
Sets the current value for the scale orientation. If autoJointOrient in on, these values will be ignored.C: The default is 0 0 0.Q: When queried, this flag returns an array of three floats. |
|||
secondaryAxisOrient (sao) | unicode | ||
|
|||
smallBoneLength (sbl) | float | ||
|
|||
smallBoneRadius (sbr) | float | ||
Specifies the radius for bones whose length is below the smallBoneLength.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
snapHandleH (snH) | bool | ||
|
|||
solverTypeH (stH) | unicode | ||
Sets the name of the solver to use with the ikHandle.C: The default is the solver set to the default in the user preferences.Q: When queried, this flag returns a string. |
|||
stickyH (sH) | unicode | ||
Specifies if the ikHandle is sticky or not. If “sticky” is passed then the ikHandle will be sticky. If “off” is used then ikHandle stickiness will be turned off.C: The default is “off”.Q: When queried, this flag returns a string. |
|||
symmetry (sym) | bool | ||
|
|||
symmetryAxis (sa) | unicode | ||
|
|||
variableBoneSize (vbs) | int | ||
|
|||
weightH (wH) | float | ||
|
Derived from mel command maya.cmds.jointCtx
Example:
import pymel.core as pm
# Create a joint context that makes a ikHandle with an ikRPSolver.
# The use the tool.
#
pm.jointCtx( 'myJointContext', createIKHandle=True, solverTypeH='ikRPsolver' )
# Result: u'myJointContext' #
pm.setToolTo( 'myJointContext' )