Go to: Synopsis. Flags. Return value. Related. Python examples.
fitBspline([constructionHistory=boolean], [curveOnSurface=boolean], [name=string], [object=boolean], [polygon=int], [range=boolean], [rebuild=boolean], [replaceOriginal=boolean], [tolerance=linear])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
fitBspline is undoable, queryable, and editable.
The fitBspline command fits the CVs from an input curve
and and returns a 3D curve.
constructionHistory, curveOnSurface, name, object, polygon, range, rebuild, replaceOriginal, tolerance
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
[string[]] (object name and node name)
TdnFitBspline.incl
TnurbsModellingCmd.cpp
rebuildCurve, smoothCurve
import maya.cmds as cmds
cmds.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) )
cmds.fitBspline( ch=1, tol=0.01 )
Return to Autodesk Index