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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
blendBias (bb) | float | ||
|
|||
blendKnotInsertion (bki) | bool | ||
If set to true, insert a knot in one of the original curves (relative position given by the parameter attribute below) in order to produce a slightly different effect.Default:false |
|||
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
|
|||
curveOnSurface (cos) | bool | ||
|
|||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
|
|||
object (o) | bool | ||
|
|||
parameter (p) | float | ||
|
|||
preserveShape (ps) | int | ||
|
|||
replaceOriginal (rpo) | bool | ||
|
Derived from mel command maya.cmds.closeCurve
Example:
import pymel.core as pm
import maya.cmds as cmds
pm.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.
pm.closeCurve( 'curve1', ch=True, ps=False )
# Closes curve1 with history and will not preserve the shape of the
# curve.
pm.closeCurve( 'curve1', ch=True, rpo=True )
# Closes curve1 with history and replaces the original curve with
# the closed one.