Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

curveEditorCtx([direction=int], [relativeTangentSize=float], [title=string])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

curveEditorCtx is undoable, queryable, and editable.

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

Return value

string(name of the new context)

In query mode, return type is based on queried flag.

Flags

direction, relativeTangentSize, title
Long name (short name) Argument types Properties
title(t) string queryedit
The title for the tool.
direction(dir) int query
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.
relativeTangentSize(rts) float createqueryedit
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 appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# Create a curve
cmds.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: curve1 #

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