pymel.core.modeling.smoothCurve

static modeling.smoothCurve(*args, **kwargs)

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

Flags:
Long name (short name) Argument Types Properties
caching (cch) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node caching mode. See the node documentation for more information. Note:For advanced users only.
constructionHistory (ch) bool ../../../_images/create.gif
 
Turn the construction history on or off
name (n) unicode ../../../_images/create.gif
 
Name the resulting object
nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node state. See the node documentation for more information. Note:For advanced users only. Common flags
object (o) bool ../../../_images/create.gif
 
Create the result, or just the dependency node
replaceOriginal (rpo) bool ../../../_images/create.gif
 
Create in place(i.e., replace) Flag can have multiple arguments, passed either as a tuple or a list.
smoothness (s) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
smoothness factor Default:10.0 Advanced flags

Derived from mel command maya.cmds.smoothCurve

Example:

import pymel.core as pm

#Create a curve, then smooth it
pm.curve(p=[(0, 0, 0), (3, 5, 6), (5, 6, 7), (9, 9, 9)], n='curve1')
# Result: nt.Transform(u'curve1') #
pm.smoothCurve('curve1.cv[*]', s=10)
# Result: [nt.Transform(u'curve1')] #