The curveCVCtx command creates a new context for creating curves by placing control vertices (CVs).
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
bezier (bez) | bool | ||
degree (d) | int | ||
|
|||
exists (ex) | bool | ||
history (ch) | bool | ||
image1 (i1) | unicode | ||
image2 (i2) | unicode | ||
image3 (i3) | unicode | ||
multEndKnots (me) | bool | ||
|
|||
name (n) | unicode | ||
preserveShape (ps) | bool | ||
rational (rl) | bool | ||
refit (rf) | bool | ||
symmetry (sm) | bool | ||
uniform (un) | bool | ||
Default is true, which means uniform parameterization will be used. False means chord length parameterization.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
Derived from mel command maya.cmds.curveCVCtx
Example:
import pymel.core as pm
# To create a new context that will create curves of degree 5:
pm.curveCVCtx( "curveCVContext", degree=5 )
# Result: u'curveCVContext' #
pm.setToolTo("curveCVContext")
# To query the degree of an existing context:
pm.curveCVCtx( "curveCVContext", q=True, degree=True )
# Result: 5 #
# To edit the degree of an existing context:
pm.curveCVCtx( "curveCVContext", , e=True, degree=7 )