pymel.core.modeling.fitBspline¶
- fitBspline(*args, **kwargs)¶
The fitBspline command fits the CVs from an input curve and and returns a 3D curve.
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. Advanced flags tolerance / tol float Tolerance for the fit. The resulting curve will be kept within tolerance of the given points. Default:0.1 Common flags Derived from mel command maya.cmds.fitBspline
Example:
import pymel.core as pm pm.curve( d=1, p=((0.2662494, 0, 10.640916), (-4.71138, 0, 7.070603), (-7.849212, 0, 1.051444), (-6.646792, 0, -3.475301), (-2.499369, 0, -3.770414), (2.041102, 0, -1.381914), (5.408074, 0, 3.095469)), k=(0, 1, 2, 3, 4, 5, 6) ) # Result: nt.Transform(u'curve1') # pm.fitBspline( ch=1, tol=0.01 ) # Result: [nt.Transform(u'fitBsplineCurve1'), nt.FitBspline(u'fitBspline1')] #