pymel.core.context.curveEditorCtx

curveEditorCtx(*args, **kwargs)

The curveEditorCtx command creates a new NURBS editor context, which is used to edit a NURBS curve or surface.

Flags:
Long name (short name) Argument Types Properties
direction (dir) int ../../../_images/query.gif
 

Query the current direction of the tangent control. Always zero for the curve case. In the surface case, its 0 for the normal direction, 1 for U direction and 2 for V direction.

exists (ex) bool  
   
history (ch) bool  
   
image1 (i1) unicode  
   
image2 (i2) unicode  
   
image3 (i3) unicode  
   
name (n) unicode  
   
relativeTangentSize (rts) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

Relative size of the tangent manipulator handle. Helps to adjust as the surface parameterization controls the size of the tangent, even if the shape of the surface remains the same. The default is 4. Flag can have multiple arguments, passed either as a tuple or a list.

title (t) unicode ../../../_images/query.gif ../../../_images/edit.gif
 
The title for the tool.

Derived from mel command maya.cmds.curveEditorCtx

Example:

import pymel.core as pm

# Create a curve
pm.curve(p=[(0, 0, 0), (3, 5, 6), (5, 6, 7), (9, 9, 9), (12, 10, 2)], k=[0,0,0,1,2,2,2])
# Result: nt.Transform(u'curve1') #

# Create a new curve editor context to modify the curve, then switch to it
# You can modify the curve using the manipulator handle
pm.curveEditorCtx('curveEditorCtx1')
pm.setToolTo('curveEditorCtx1')

Previous topic

pymel.core.context.curveEPCtx

Next topic

pymel.core.context.curveMoveEPCtx

Core

Core Modules

Other Modules

This Page