Go to: Synopsis. Return value. Flags. Python examples.
commandEcho([filter=[string,...]], [lineNumbers=boolean], [state=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
commandEcho is undoable, queryable, and NOT editable.
This command controls what is echoed to the command window.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
state(st)
|
boolean
|
|||
|
||||
filter(f)
|
[string,...]
|
|||
|
||||
lineNumbers(ln)
|
boolean
|
|||
|
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 # Echo everything cmds.commandEcho( state=True ) # Go back to normal cmds.commandEcho( state=False ) # Display line number information in messages. This is the default. cmds.commandEcho( lineNumbers=True ) # Do not display line number information in messages. cmds.commandEcho( lineNumbers=False ) # Do not display changeToolIcon, escapeCurrentTool or autoUpdateAttrEd commands when echoing everything cmds.commandEcho( filter=('changeToolIcon', 'escapeCurrentTool', 'autoUpdateAttrEd') ); # Do not display setLastFocusedCommandReporter or setLastFocusedCommandExecuter when echoing everything cmds.commandEcho( filter=('setLastFocusedCommand') );