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.
Flags:
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 | ![]() |
|
|
|||
frozen / fzn | bool | ||
name / n | unicode | ![]() |
|
Sets the name of the newly-created node. If it contains namespace path, the new node will be created under the specified namespace; if the namespace does not exist, it will be created. |
|||
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
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.