移動先: 概要 戻り値 フラグ. 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.