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

Synopsis

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.

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 have multiple arguments, passed either as a tuple or a list.

Python examples

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)