ジャンプ先: 概要. 戻り値. フラグ. Python 例.
commandEcho([addFilter=[string,...]], [filter=[string,...]], [lineNumbers=boolean], [state=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
commandEcho は、取り消し可能、照会可能、および編集不可能です。
このコマンドは、コマンド ウィンドウに何がエコーされるかを制御します。なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
state(st)
|
boolean
|
|
||
|
||||
filter(f)
|
[string,...]
|
|
||
|
||||
addFilter(af)
|
[string,...]
|
|
||
|
||||
lineNumbers(ln)
|
boolean
|
|
||
|
||||
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') );
# Add to the current filter
cmds.commandEcho( addFilter=('addToolIcon') );