Go to: Synopsis. Return value. Keywords. Flags. Python examples.
dbtrace([filter=string], [info=boolean], [keyword=string], [mark=boolean], [off=boolean], [output=string], [timed=boolean], [title=string], [verbose=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
dbtrace is NOT undoable, queryable, and NOT editable.
The dbtrace command is used to manipulate trace objects.
The keyword is the only mandatory argument, indicating which trace
object is to be altered.
- Trace Objects to affect (keyword KEY)
- Optional filtering criteria (filter FILTER)
- Function (off, output FILE, mark, title TITLE, timed : default operation is to enable traces)
You can use the query mode to find out which keywords are currently
active (query with no arguments) or inactive (query with the off
argument).
You can enhance that query with or without a keyword argument to find
out where their output is going (query with the output
argument), out what filters are currently applied (query with the
filter argument), or if their output will be
timestamped (query with the timed argument).
None
In query mode, return type is based on queried flag.
debug, trace, filter
filter, info, keyword, mark, off, output, timed, title, verbose
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
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 levels of trace objects having keyword "fooTrace"
cmds.dbtrace( query=True, k="fooTrace", output=True )