ジャンプ先: 概要. 戻り値. キーワード. フラグ. Python 例.
dagObjectCompare([attribute=boolean], [bail=string], [connection=boolean], [namespace=string], [relative=boolean], [short=boolean], [type=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
dagObjectCompare は、取り消し不可能、照会不可能、および編集不可能です。
dagObjectCompare を使用して、以下に基づいてオブジェクトを比較できます。
- type: 現在、トランスフォーム ノードとシェイプ ノードがサポートされています
- relatives: DAG オブジェクトの親と子を比較します
- connections: 2 つの DAG が同じソースと目標に接続されていることを確認します
- attributes: アクティブ アトリビュートのプロパティが同一であることを確認します
なし
dag, compare
attribute, bail, connection, namespace, relative, short, type
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Compare two objects based on type and their relatives where one is in the namespace "base":
cmds.dagObjectCompare( t=True, r=True, n="base" )
# Compare two objects based on their connections and attributes where one is in the namespace "base" , break on first error:
cmds.dagObjectCompare( c=True, a=True, b="first")
# Compare two objects based on their type, connections, attributes, relatives and break on error while finishing current category:
cmds.dagObjectCompare( t=True, r=True, c=True, a=True, b=True, category=True, n="base")