Go to: Synopsis. Flags. Return value. Python examples.
radioMenuItemCollection(
[radioMenuItemCollectionName]
, [defineTemplate=string], [edit=boolean], [exists=boolean], [gl=boolean], [parent=string], [query=boolean], [useTemplate=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
radioMenuItemCollection is undoable, queryable, and editable.
This command creates a radioMenuItemCollection. Attach radio menu
items to radio menu item collection objects to get radio button
behaviour. Radio menu item collections will be parented to the
current menu if no parent is specified with the -p/parent
flag. As children of the menu they will be deleted when the menu is
deleted. Collections may also span more than one menu if
the -g/global flag is used. In this case the collection has no
parent menu and must be explicitly deleted with the deleteUI
command when it is no longer wanted.
defineTemplate, edit, exists, gl, parent, query, 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.
|
Full path name to the collection.
import maya.cmds as cmds
cmds.window( menuBar=True )
cmds.menu( label='Position' )
cmds.radioMenuItemCollection()
cmds.menuItem( label='Top', radioButton=False )
cmds.menuItem( label='Middle', radioButton=False )
cmds.menuItem( label='Bottom', radioButton=True )
cmds.menu( label='Number' )
cmds.radioMenuItemCollection()
cmds.menuItem( label='One', radioButton=True )
cmds.menuItem( label='Two', radioButton=False )
cmds.menuItem( label='Three', radioButton=False )
cmds.showWindow()
Return to Autodesk Index