Your Ad Here

Go to: Synopsis. Flags. Return value. Related. Python examples.

Synopsis

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.

Flags

constructionHistory, curveOnSurface, name, object, polygon, range, rebuild, replaceOriginal, tolerance
Long name (short name) [argument types] Properties
tolerance(tol) linear queryedit
Tolerance for the fit. The resulting curve will be kept within tolerance of the given points.
Default: 0.1

In query mode, this flag needs a value.

name(n) string create
Name the resulting object
constructionHistory(ch) boolean create
Turn the construction history on or off (not available in all commands)
object(o) boolean create
Create the result, or just the dependency node (not available in all commands)
replaceOriginal(rpo) boolean create
Create "in place" (i.e., replace) (not available in all commands)
curveOnSurface(cos) boolean create
If possible, create 2D curve as a result (not available in all commands)
polygon(po) int create
The value of this argument controls the type of the object created by this operation (not available in all commands)
  • 0: nurbs surface
  • 1: polygon (use nurbsToPolygonsPref to set the parameters for the conversion)
  • 2: subdivision surface (use nurbsToSubdivPref to set the parameters for the conversion)
  • 3: Bezier surface
  • 4: subdivision surface solid (use nurbsToSubdivPref to set the parameters for the conversion)
range(rn) boolean create
Force a curve range on complete input curve (not available in all commands)
rebuild(rb) boolean create
Rebuild the input curve(s) before using them in the operation. Use nurbsCurveRebuildPref to set the parameters for the conversion. (not available in all commands)

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.

Return value


[string[]] (object name and node name) TdnFitBspline.incl TnurbsModellingCmd.cpp

Related

rebuildCurve, smoothCurve

Python examples

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


Your Ad Here