Go to: Synopsis. Return value. Related. Flags. MEL examples.


duplicateCurve [-constructionHistory boolean] [-local boolean] [-name string] [-object boolean] [-range boolean]

duplicateCurve is undoable, queryable, and editable.

The duplicateCurve command takes a curve on a surface and and returns the 3D curve. The curve on a surface could be isoparam component, trimmed edge or curve on surface object.

Return value

string[]Object name and node name

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


curveOnSurface, intersect, projectCurve


constructionHistory, local, name, object, range
Long name (short name) Argument types Properties
Common flags
-constructionHistory(-ch) boolean create
Turn the construction history on or off (where applicable)
-object(-o) boolean create
Create the result, or just the dependency node (where applicable)
-local(-l) boolean create
Copy the transform of the surface and connect to the local space version instead.
-range(-rn) boolean create
Force a curve range on complete input curve (where applicable)
-name(-n) string create
Sets the name of the newly-created node. If it contains namespace path, the new node will be created under the specified namespace; if the namespace does not exist, it will be created.

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 be used more than once in a command.

MEL examples

cone -ch on -o on -po 0 -ax 0 1 0 -r 3 -hr 4;
// Result: nurbsCone1 makeNurbCone1 //

// duplicate isoparm at v param 0.5 with history
duplicateCurve -ch true -o true nurbsCone1.v[0.5];

// duplicate isoparm at normalized u param 0.1, no history
duplicateCurve -ch false nurbsCone1.un[0.1];

nurbsPlane -ch on -o on -po 0 -ax 0 1 0 -w 10 -lr 1 ;
circle -ch on -o on -nr 0 1 0 -r 4 ;
projectCurve -ch 0 -rn false -un  false  -tol 0.01 "nurbsCircle1" "nurbsPlane1" ;
// duplicate curve on surface
duplicateCurve -ch true -o false nurbsPlaneShape1->projectionCurve1_1;

trim -ch on -o on -rpo on -lu 0.2 -lv 0.3 nurbsPlaneShape1 projectionCurve1_Shape1 ;
// duplicate trim edge
duplicateCurve -ch true -o false nurbsPlane1.edge[1][1][1];