ジャンプ先: 概要. 戻り値. キーワード. フラグ. Python 例.

概要

dagObjectCompare([attribute=boolean], [bail=string], [connection=boolean], [namespace=string], [relative=boolean], [short=boolean], [type=boolean])

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

dagObjectCompare は、取り消し不可能、照会不可能、および編集不可能です。

dagObjectCompare を使用して、以下に基づいてオブジェクトを比較できます。

戻り値

なし

キーワード

dag, compare

フラグ

attribute, bail, connection, namespace, relative, short, type
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
attribute(a) boolean create
DAG オブジェクト アトリビュートを比較
bail(b) string create
最初のエラーで中断、またはカテゴリで中断。正当な値は「never」、「first」、「category」です。
connection(c) boolean create
DAG接続を比較
namespace(n) string create
ベースライン ネームスペース
relative(r) boolean create
DAG 相対
short(s) boolean create
出力を短い(冗長でない)形式に圧縮します
type(t) boolean create
DAG オブジェクト タイプに基づいて比較

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

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")