Controls the proportional move context.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
animCurve (ac) | unicode | ||
Name of the anim curve to use as a drop-off curve. Only the 0 -side of the curve will be used and the distance will be mapped to seconds. The profile of the curve will be used as the profile for propmod function. |
|||
animCurveFalloff (acf) | float, float | ||
The profile of the curve will be used as the profile for propmod function in both U and V. This will be scaled in U, V according to the paramters provided. The ratio of the U, V scaling parameters will dictate the footprint of the fuction while the curve itself provides the magnitudes. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
animCurveParam (acp) | unicode | ||
Name of the anim curve to use as a drop-off curve. Only the 0 -side of the curve will be used and the distance will be mapped to seconds, where 1 second maps to 0.01 units in parametric space. |
|||
direction (d) | float, float, float | ||
|
|||
exists (ex) | bool | ||
image1 (i1) | unicode | ||
image2 (i2) | unicode | ||
image3 (i3) | unicode | ||
linear (l) | float | ||
If using linear drop-off function, this is its slope. The default of -0.1 means the point at the locator moves with it and the point 10 units away doesn’t move at all. |
|||
linearParam (lp) | float, float | ||
|
|||
nurbsCurve (nc) | unicode | ||
|
|||
powerCutoff (pc) | float | ||
|
|||
powerCutoffParam (pcp) | float, float | ||
|
|||
powerDegree (pd) | float | ||
|
|||
powerDegreeParam (pdp) | float | ||
|
|||
script (s) | unicode | ||
The name of the script to use to compute the drop-off. The script takes 6 floats as input - first 3 are the position of the move locator, the next 3 the position of the point to be manipulated. The script should return a drop-off coefficient which could be negative or zero. |
|||
scriptParam (sp) | unicode | ||
The name of the script to use to compute the drop-off. The script takes 4 floats as input - first 2 are the parametric position of the move locator, the next 2 the parametric position of the point to be manipulated. The script should return a drop-off coefficient which could be negative or zero. |
|||
type (t) | int | ||
|
|||
worldspace (ws) | bool | ||
|
Derived from mel command maya.cmds.propModCtx
Example:
import pymel.core as pm
# Edit type of propmod context.
pm.propModCtx( 'PropMod', e=True, t=1 )
# Result: u'PropMod' #
# Activate propmod context.
pm.setToolTo( 'PropMod' )
# Change the type and dropoff.
pm.propModCtx( 'PropMod', e=True, d=(0, 1, 0) )
# Result: u'PropMod' #