Hey all,
Trying to query selected radio Button in a popupMenu then Print the it. I know
in cmds.radioCollection they have a flag called "select" but for
cmds.radioMenuItemCollection the flag select doesn't exist.
import maya.cmds as cmds
#creates Window
myWindow = cmds.window( width=150, h = 200 )
cmds.columnLayout( adjustableColumn=True )
#lists Cameras
Cams = cmds.listCameras(p=True)
#Run Button
cmds.button(l="go", c = Cprint) # I know the Command it wrong! just to discribe
what i am looking for
cmds.popupMenu()
cmds.radioMenuItemCollection()
#creates Radio Menu
for i in Cams:
btnName = str(i)
RCam = cmds.menuItem( btnName,rb= True, label=btnName)
#shows Window
cmds.showWindow(myWindow)
def Cprint(*arg):
print RCam # aka Selected Camera
Any help would be Amazing!
- Adam
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/7f71af79-cfad-4094-80bb-e7499b531ef9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.