Go to: Synopsis. Return value. Related. Flags. Python examples.
smoothCurve(
selectionList
, [caching=boolean], [constructionHistory=boolean], [name=string], [nodeState=int], [object=boolean], [replaceOriginal=boolean], [smoothness=float])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
smoothCurve is undoable, queryable, and editable.
The smooth command smooths the curve at the given control points.
string[] | Object name and node name |
In query mode, return type is based on queried flag.
fitBspline, rebuildCurve
caching, constructionHistory, name, nodeState, object, replaceOriginal, smoothness
Long name (short name) |
Argument types |
Properties |
|
smoothness(s)
|
float
|
|
|
smoothness factor
Default: 10.0
|
|
Common flags |
constructionHistory(ch)
|
boolean
|
|
|
Turn the construction history on or off.
|
|
name(n)
|
string
|
|
|
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 the result, or just the dependency node.
|
|
replaceOriginal(rpo)
|
boolean
|
|
|
Create "in place" (i.e., replace).
|
|
Advanced flags |
caching(cch)
|
boolean
|
|
|
Modifies the node caching mode. See the node documentation for more information.
Note: For advanced users only.
|
|
nodeState(nds)
|
int
|
|
|
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 have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
#Create a curve, then smooth it
cmds.curve(p=[(0, 0, 0), (3, 5, 6), (5, 6, 7), (9, 9, 9)], n='curve1')
cmds.smoothCurve('curve1.cv[*]', s=10)