Go to: Synopsis. Flags. Return value. Python examples.
toolCollection(
[toolCollectionName]
, [collectionItemArray=boolean], [defineTemplate=string], [edit=boolean], [exists=boolean], [gl=boolean], [numberOfCollectionItems=boolean], [parent=string], [query=boolean], [select=string], [useTemplate=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
toolCollection is undoable, queryable, and editable.
This command creates a tool button collection. Collections are parented
to the current default layout if no parent is specified with
the -p/parent flag. As children of the layout they will be deleted when
the layout is deleted. Collections may also span more than one window
if the -gl/global flag is used. In this case the collection has no parent
and must be explicitly deleted with the 'deleteUI' command when it is no
longer wanted.
collectionItemArray, defineTemplate, edit, exists, gl, numberOfCollectionItems, parent, query, select, useTemplate
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.
|
The name of the toolCollection created, or the queried value.
import maya.cmds as cmds
cmds.window()
cmds.columnLayout()
cmds.toolCollection()
cmds.toolButton( tool='selectSuperContext', toolImage1=('selectSuperContext', 'aselect.xpm') )
cmds.toolButton( tool='moveSuperContext', toolImage1=('moveSuperContext', 'move_M.xpm') )
cmds.toolButton( tool='scaleSuperContext', toolImage1=('scaleSuperContext', 'scale_M.xpm') )
cmds.showWindow()
Return to Autodesk Index