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
Common flags
-constructionHistory(-ch) boolean create
Turn the construction history on or off.
-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.
-object(-o) boolean create
Create the result, or just the dependency node.
-replaceOriginal(-rpo) boolean create
Create "in place" (i.e., replace).
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.

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[*]";