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

Synopsis

smoothCurve [-caching boolean] [-constructionHistory boolean] [-name string] [-nodeState int] [-object boolean] [-replaceOriginal boolean] [-smoothness float] selectionList

smoothCurve is undoable, queryable, and editable.

The smooth command smooths the curve at the given control points.

Return value

string[] Object name and node name

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

Related

fitBspline, rebuildCurve

Flags

caching, constructionHistory, name, nodeState, object, replaceOriginal, smoothness
Long name (short name) Argument types Properties
-smoothness(-s) float createqueryedit
smoothness factor
Default: 10.0
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)

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

//Create a curve, then smooth it
curve -p 0 0 0 -p 3 5 6 -p 5 6 7 -p 9 9 9 -n "curve1";
smoothCurve -s 10 "curve1.cv[*]";