pymel.core.modeling.smoothCurve¶
- 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 Modifies the node caching mode. See the node documentation for more information. Note:For advanced users only. constructionHistory / ch bool Turn the construction history on or off. frozen / fzn bool name / n unicode 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. nodeState / nds int Modifies the node state. See the node documentation for more information. Note:For advanced users only. Flag can have multiple arguments, passed either as a tuple or a list. object / o bool Create the result, or just the dependency node. replaceOriginal / rpo bool Create in place(i.e., replace). Advanced flags smoothness / s float smoothness factor Default:10.0 Common 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')] #