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
name (n) unicode ../../../_images/create.gif
 
Name the resulting object
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 nodeFlag can appear in Create mode of commandFlag 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.1Advanced flags

Derived from mel command maya.cmds.fitBspline

Example:

import pymel.core as pm

import maya.cmds as cmds

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')] #

Previous topic

pymel.core.modeling.filterExpand

Next topic

pymel.core.modeling.freeFormFillet

Core

Core Modules

Other Modules

This Page