The ikSplineHandle context command (ikSplineHandleCtx) updates parameters of ikSplineHandle tool. The options for the tool will be set to the flags the user specifies.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
autoPriorityH (apH) | bool | ||
|
|||
createCurve (ccv) | bool | ||
|
|||
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. 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 | ||
|
|||
parentCurve (pcv) | bool | ||
Specifies if the curve should automatically be parented to the parent of the first joint affected by the ikSplineHandle. C: The default is on. Q: When queried, this flag returns an int. |
|||
poWeightH (pwH) | float | ||
|
|||
priorityH (pH) | int | ||
|
|||
rootOnCurve (roc) | bool | ||
|
|||
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. 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. 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. For the ikSplineContext the solver can only be the ikSplineSolver and this flag is ignored. C: The default solver is the ikSplineSolver.Q: When queried, this flag returns a string. |
|||
stickyH (sH) | unicode | ||
Specifies if the ikHandle is sticky or not. Valid strings are stickyand off. This flag is ignored for the ikSplineSolver.C: The default is off.Q: When queried, this flag returns a string. |
|||
twistType (tws) | unicode | ||
Specifies the type of interpolation to be used by the ikSplineHandle. 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.ikSplineHandleCtx
Example:
import pymel.core as pm
# Edit an existing context to create an ikSplineHandle with
# the curve parented to the corresponding joint.
#
if pm.ikSplineHandleCtx( 'ikSplineHandleCtx', q=True, ex=True ):
pm.ikSplineHandleCtx('ikSplineHandleCtx', e=True, parentCurve=True)