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

Synopsis

extendCurve [-caching boolean] [-constructionHistory boolean] [-curveOnSurface boolean] [-distance linear] [-extendMethod int] [-extensionType int] [-inputPoint float float float] [-join boolean] [-name string] [-nodeState int] [-object boolean] [-pointX linear] [-pointY linear] [-pointZ linear] [-range boolean] [-removeMultipleKnots boolean] [-replaceOriginal boolean] [-start int] object

extendCurve is undoable, queryable, and editable.

This command extends a curve or creates a new curve as an extension

Return value

string[]Object name and node name

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

Flags

caching, constructionHistory, curveOnSurface, distance, extendMethod, extensionType, inputPoint, join, name, nodeState, object, pointX, pointY, pointZ, range, removeMultipleKnots, replaceOriginal, start
Long name (short name) Argument types Properties
-inputPoint(-ip) float float float createqueryedit
The point to extend to (optional)
-pointX(-px) linear createqueryedit
X of the point to extend to
Default: 0
-pointY(-py) linear createqueryedit
Y of the point to extend to
Default: 0
-pointZ(-pz) linear createqueryedit
Z of the point to extend to
Default: 0
-extensionType(-et) int createqueryedit
The type of extension: 0 - linear, 1 - circular, 2 - extrapolate
Default: 0
-extendMethod(-em) int createqueryedit
The method with which to extend: 0 - based on distance, 2 - to a 3D point
Default: 0
-start(-s) int createqueryedit
Which end of the curve to extend. 0 - end, 1 - start, 2 - both
Default: 1
-join(-jn) boolean createqueryedit
If true, join the extension to original curve
Default: true
-distance(-d) linear createqueryedit
The distance to extend Used only for extendMethod is byDistance.
Default: 1
-removeMultipleKnots(-rmk) boolean createqueryedit
If true remove multiple knots at join Used only if join is true.
Default: false
Advanced flags
-caching(-cch) boolean createqueryedit
Modifies the node caching mode. See the node documentation for more information.
Note: For advanced users only.
-nodeState(-nds) int createqueryedit
Modifies the node state. See the node documentation for more information.
Note: For advanced users only.
Common flags
-name(-n) string create
Name the resulting object
-constructionHistory(-ch) boolean create
Turn the construction history on or off
-object(-o) boolean create
Create the result, or just the dependency node
-replaceOriginal(-rpo) boolean create
Create "in place" (i.e., replace)
-curveOnSurface(-cos) boolean create
If possible, create 2D curve as a result
-range(-rn) boolean create
Force a curve range on complete input curve

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

// to extend the start of a curve with a line of distance 3
extendCurve -em 0 -et 0 -s true -d 3.0;

// to extend the end of a curve to a point
extendCurve -em 2 -s false -ip 1 2 3;