in Programmer by

That way I can use that to declare the rightMenu for the menuItems I want to populate, or doing other edits/queries.

 

1 Answer

0 votes
by
 
Best answer

Sure:

from maya import cmds
selectedPickerItems = cmds.MGPickerView(q=True, select=True)
print ('Selected: %s' % selectedPickerItems)

Reference for MGPickerView command.

...