移動先: 概要 戻り値 フラグ. Python 例.
reverseCurve(
curve
, [caching=boolean], [constructionHistory=boolean], [curveOnSurface=boolean], [name=string], [nodeState=int], [object=boolean], [range=boolean], [replaceOriginal=boolean])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
reverseCurve は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
カーブまたはカーブオン サーフェスの方向を反転します。新しく反転したカーブのパス名、および
生成されたディペンデンシー ノードの名前を含む文字列が返されます。反転したカーブのパラメータ範囲は、元のカーブと同じです。
戻り値の型は照会モードでは照会フラグが基になります。
caching, constructionHistory, curveOnSurface, name, nodeState, object, range, replaceOriginal
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: タプルまたはリストとして渡された複数の引数を持てるフラグ
|
import maya.cmds as cmds
cmds.reverseCurve( 'curve1', constructionHistory=True )
# Reverses curve1 with construction history on. The result will
# be a string array, where the first string is the name of the new
# reversed curve and the second string is the name of the new
# dependency node.
cmds.reverseCurve( 'curve1', ch=False, replaceOriginal=True )
# Reverses curve1 without construction history, replacing the original.
# The result will be a string array, where the first string
# is the name of the curve (curve1). Because history is off,
# no dependency node will be created. The reversed curve will
# replace the original curve.
cmds.reverseCurve( 'curve1', ch=True, rpo=True )
# Reverses curve1 with history, trying to replace the original.
# If curve1 was not a result of construction history, then this command
# will simply replace curve1 with the reversed curve. No dependency
# node will be created.
# If curve1 was a result of construction history, then this command
# will insert a reverse dependency node before the curve. eg.
# Before reverseCurve cmd: curve0 ---> closeCurve DN ---> curve1
# After cmd: curve0 ---> closeCurve DN ---> reverseCurve DN ---> curve1
# The result will be a string array , where the first string
# is the name of the curve (curve1) and the second name is the
# new dependency node.