pymel.core.modeling.fitBspline — PyMEL 1.0.7 documentation

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 ../../../_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
frozen / fzn bool  
   
name / n unicode ../../../_images/create.gif
 

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 ../../../_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 Flag can have multiple arguments, passed either as a tuple or a list.
tolerance / tol float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Tolerance for the fit. The resulting curve will be kept within tolerance of the given points. Default:0.1 Advanced 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')] #