pymel.core.modeling.closeCurve

closeCurve(*args, **kwargs)

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 ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Skew the result toward the first or the second curve depending on the blend value being smaller or larger than 0.5. Default:0.5
blendKnotInsertion (bki) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

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 ../../../_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
curveOnSurface (cos) bool ../../../_images/create.gif
 
If possible, create 2D curve as a result Flag can have multiple arguments, passed either as a tuple or a list.
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 node
parameter (p) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The parameter value for the positioning of the newly inserted knot. Default:0.1 Advanced flags
preserveShape (ps) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
0 - without preserving the shape 1 - preserve shape 2 - blend Default:1
replaceOriginal (rpo) bool ../../../_images/create.gif
 
Create in place(i.e., replace)

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.

Previous topic

pymel.core.modeling.circularFillet

Next topic

pymel.core.modeling.closeSurface

Core

Core Modules

Other Modules

This Page