The ikHandle context command (ikHandleCtx) updates parameters of ikHandle tool. The options for the tool will be set to the flags that the user specifies.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
autoPriorityH (apH) | bool | ||
|
|||
createCurve (ccv) | bool | ||
Specifies if a curve should be automatically created for the ikSplineHandle. The flag is ignored in the ikHandleCtx.C: The default is on. Q: When queried, this flag returns an int. |
|||
createRootAxis (cra) | bool | ||
Specifies if a root transform should automatically be created above the joints affected by the ikSplineHandle. This option is used to prevent the root flipping singularity on a motion path. This flag is ignored in the ikHandleCtx.C: The default is off. Q: When queried, this flag returns an int. |
|||
exists (ex) | bool | ||
|
|||
forceSolverH (fsH) | bool | ||
|
|||
history (ch) | bool | ||
|
|||
image1 (i1) | unicode | ||
image2 (i2) | unicode | ||
image3 (i3) | unicode | ||
|
|||
name (n) | unicode | ||
|
|||
numSpans (ns) | int | ||
Specifies the number of spans in the automatically generated curve of the ikSplineHandle. This flag is ignored in the ikHandleCtx.C: The default is 1. Q: When queried, this flag returns an int. |
|||
parentCurve (pcv) | bool | ||
Specifies if the curve should automatically be parented to the parent of the first joint affected by the ikSplineHandle. The flag is ignored in the ikHandleCtx.C: The default is on. Q: When queried, this flag returns an int. |
|||
poWeightH (pwH) | float | ||
|
|||
priorityH (pH) | int | ||
|
|||
rootOnCurve (roc) | bool | ||
Specifies if the root is locked onto the curve of the ikSplineHandle. This flag is ignored in the ikHandleCtx. C: The default is on. Q: When queried, this flag returns an int. |
|||
rootTwistMode (rtm) | bool | ||
Specifies whether the start joint is allowed to twist or not. If not, then the required twist is distributed over the remaining joints. This applies to all the twist types. This flag is ignored in the ikHandleCtx. C: The default is off. Q: When queried, this flag returns an int. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
simplifyCurve (scv) | bool | ||
|
|||
snapCurve (snc) | bool | ||
Specifies if the curve should automatically snap to the first joint affected by the ikSplineHandle. This flag is ignored in the ikHandleCtx.C: The default is off. Q: When queried, this flag returns an int. |
|||
snapHandleH (snH) | bool | ||
|
|||
solverTypeH (stH) | unicode | ||
Lists what ikSolver is being used. The ikSplineSolver may not be selected. To use an ikSplineSolver use the ikSplineHandleCtx command. C: The default solver is the default set by the user preferences.Q: When queried, this flag returns a string. |
|||
stickyH (sH) | unicode | ||
|
|||
twistType (tws) | unicode | ||
Specifies the type of interpolation to be used by the ikSplineHandle. This flag is ignored in the ikHandleCtx. The interpolation options are linear, easeIn, easeOut, and easeInOut. C: The default is linear. Q: When queried, this flag returns a string. |
|||
weightH (wH) | float | ||
|
Derived from mel command maya.cmds.ikHandleCtx
Example:
import pymel.core as pm
# Edit an existing context to create an ikHandle with snapping on.
#
if pm.ikHandleCtx( 'ikHandleCtx', q=True, ex=True ):
pm.ikHandleCtx('ikHandleCtx', e=True, snapHandleH=True)