Go to: Synopsis. Flags. Return value. Python examples.
closeCurve(
[curveName]
, [blendBias=float], [blendKnotInsertion=boolean], [constructionHistory=boolean], [curveOnSurface=boolean], [name=string], [object=boolean], [parameter=float], [polygon=int], [preserveShape=int], [range=boolean], [rebuild=boolean], [replaceOriginal=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
closeCurve is undoable, queryable, and editable.
The closeCurve command closes a curve, making it periodic.
The pathname to the newly closed curve and the name
of the resulting dependency node are returned. If a curve
is not specified in the command, then the first active curve
will be used.
blendBias, blendKnotInsertion, constructionHistory, curveOnSurface, name, object, parameter, polygon, preserveShape, range, rebuild, replaceOriginal
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)
import maya.cmds as cmds
cmds.closeCurve( 'curve1', ch=True, ps=True )
# Closes curve1 with history and by preserving shape. The result will
# be the name of the closed curve, and the name of the newly created
# dependency node.
cmds.closeCurve( 'curve1', ch=True, ps=False )
# Closes curve1 with history and will not preserve the shape of the
# curve.
cmds.closeCurve( 'curve1', ch=True, rpo=True )
# Closes curve1 with history and replaces the original curve with
# the closed one.
Return to Autodesk Index