ジャンプ先: 概要. 戻り値. Python 例.

概要

toolDropped( [string] )

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

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

このコマンドは、指定したツール ボタンを再生成するために必要なコマンドを構築して実行します。ツールがシェルフ上にドロップされると呼び出されます。

戻り値

なし

Python 例

import maya.cmds as cmds

# Create move tool button and scale tool button in a new window
cmds.window()
cmds.columnLayout()
cmds.toolCollection()
cmds.toolButton( tool='moveSuperContext', toolImage1=('moveSuperContext', 'move_M.png') )
cmds.toolButton( tool='scaleSuperContext', toolImage1=('scaleSuperContext', 'scale_M.png') )
cmds.showWindow()

# Drop select tool to the created window
cmds.toolDropped('selectTool')