The fitBspline command fits the CVs from an input curve and and returns a 3D curve.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | 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 | ||
|
|||
object (o) | bool | ||
|
|||
tolerance (tol) | float | ||
|
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')] #