ジャンプ先: 概要. 戻り値. フラグ. Python 例.
closeCurve(
curve
, [blendBias=float], [blendKnotInsertion=boolean], [caching=boolean], [constructionHistory=boolean], [curveOnSurface=boolean], [name=string], [nodeState=int], [object=boolean], [parameter=float], [preserveShape=int], [replaceOriginal=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
closeCurve は、取り消し可能、照会可能、および編集可能です。
closeCurve コマンドはカーブを閉じて、周期カーブにします。新しく閉じたカーブのパスの名前と、ディペンデンシー ノードの名前が返されます。このコマンドでカーブが指定されていない場合、最初のアクティブなカーブが使用されます。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
blendBias, blendKnotInsertion, caching, constructionHistory, curveOnSurface, name, nodeState, object, parameter, preserveShape, replaceOriginal
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
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.