移動先: 概要 戻り値 フラグ. Python 例.

概要

reverseCurve( curve , [caching=boolean], [constructionHistory=boolean], [curveOnSurface=boolean], [name=string], [nodeState=int], [object=boolean], [range=boolean], [replaceOriginal=boolean])

注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。

reverseCurve は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。

カーブまたはカーブオン サーフェスの方向を反転します。新しく反転したカーブのパス名、および 生成されたディペンデンシー ノードの名前を含む文字列が返されます。反転したカーブのパラメータ範囲は、元のカーブと同じです。

戻り値

string[](オブジェクト名とノード名)

戻り値の型は照会モードでは照会フラグが基になります。

フラグ

caching, constructionHistory, curveOnSurface, name, nodeState, object, range, replaceOriginal
ロング ネーム(ショート ネーム) 引数型 プロパティ
高度なフラグ
caching(cch) boolean createqueryedit
ノード キャッシング モードを修正します。詳細については、ノードの説明を参照してください。
: 上級ユーザ向けの機能です。
nodeState(nds) int createqueryedit
ノード状態を修正します。詳細については、ノードの説明を参照してください。
: 上級ユーザ向けの機能です。
一般的なフラグ
name(n) string create
作成されたオブジェクトに名前を付けます。
constructionHistory(ch) boolean create
コンストラクション ヒストリをオンまたはオフにします。
object(o) boolean create
結果のオブジェクト、またはディペンデンシー ノードのみを作成します。
replaceOriginal(rpo) boolean create
「同じ位置」に作成(つまり置き換え)します。
curveOnSurface(cos) boolean create
可能な場合は、2D カーブが作成されます。
range(rn) boolean create
カーブの範囲を入力カーブ全体に強制します。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : タプルまたはリストとして渡された複数の引数を持てるフラグ

Python 例

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.