pymel.core.context.curveCVCtx

curveCVCtx(*args, **kwargs)

The curveCVCtx command creates a new context for creating curves by placing control vertices (CVs).

Flags:
Long name (short name) Argument Types Properties
bezier (bez) bool  
   
degree (d) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
valid values are 1, 2, 3, 5 or 7. Default is degree 3.
exists (ex) bool  
   
history (ch) bool  
   
image1 (i1) unicode  
   
image2 (i2) unicode  
   
image3 (i3) unicode  
   
multEndKnots (me) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Default is true. False means that the curve will not pass through the end control vertices (CVs).
name (n) unicode  
   
preserveShape (ps) bool  
   
rational (rl) bool  
   
refit (rf) bool  
   
symmetry (sm) bool  
   
uniform (un) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

Default is true, which means uniform parameterization will be used. False means chord length parameterization. Flag 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 )

Previous topic

pymel.core.context.curveBezierCtx

Next topic

pymel.core.context.curveEPCtx

Core

Core Modules

Other Modules

This Page