ジャンプ先: 概要. 戻り値. キーワード. フラグ. Python 例.
dbtrace([filter=string], [info=boolean], [keyword=string], [mark=boolean], [off=boolean], [output=string], [timed=boolean], [title=string], [verbose=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
dbtrace は、取り消し不可能、照会可能、および編集不可能です。
dbtrace コマンドを使用して、トレース オブジェクトを操作します。keyword は、変更対象のトレース オブジェクトを示す、唯一の必須引数です。
- 影響するトレース オブジェクト(keyword KEY)
- オプションのフィルタリング基準(filter FILTER)
- 関数(off、output FILE、mark、title TITLE、timed: 既定の動作はトレースの有効化)
照会モードを使用すると、現在アクティブなキーワードの検索(引数なしで照会)、または現在非アクティブなキーワードの検索(off 引数を指定して照会)を実行できます。この照会を強化するには、キーワード引数を指定するか、指定を外します。こうすると、出力の送信先の検索(output 引数を指定して照会)、現在適用されているフィルタの検索(filter 引数を指定して照会)、または出力にタイムスタンプが付けられるかどうかの判別(timed 引数を指定して照会)を行うことができます。
なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
debug, trace, filter
filter, info, keyword, mark, off, output, timed, title, verbose
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# The default action is to turn the trace object on. This action can be
# changed using one of the -off, -output, -mark, -query, or -title.
cmds.dbtrace( off=True ) # turns all active tracing off
cmds.dbtrace( k='key' ) # turns on all tracing for keyword "key"
cmds.dbtrace( o='FRED' ) # sends all active tracing output to the file "FRED"
# Inserts a title line in all active trace destinations having keyword 'key'
cmds.dbtrace( k='key', t='This is a Title' )
# Only turn on traces with keyword "key" in Transform nodes
cmds.dbtrace( k="key", f="transform" )
# Show where output is going for all trace objects having keyword "fooTrace"
cmds.dbtrace( query=True, k="fooTrace", output=True )