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

Synopsis

duplicateCurve [-constructionHistory boolean] [-local boolean] [-name boolean] [-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.

Flags

constructionHistory, local, name, object, range
Long name (short name) [argument types] Properties
-name(-n) boolean create
Name the resulting object
-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)

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

Return value


[string[]] (object name and node name)

Related

curveOnSurface, intersect, projectCurve

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];