dwalden74
05-23-2003, 04:19 PM
Hi guys-
I need some help understanding the "-collection" flag in the menuItem command.
I have a script which is dynamically adding menuItems with submenus to a popup menu (it adds menuItems based on cameras and image planes found in the scene). However, Iīm getting errors (only sometimes, strangely) with these submenu menuItems: "Error... : Collection not found, or no current collection."
When the error occurs, it is found in a line that contains a menuItem with a radioButton. I was looking again over the menuItem flags in the MEL docs, and saw the "-collection" flag, although there are no examples of this flag, and the definition of this flag is "-cl/collection string: To explicitly add a radio menu item to a collection." What does that mean? Apparently I should create a collection somewhere and add the menuItems to this collection, but where and how???
:beer:
David
I need some help understanding the "-collection" flag in the menuItem command.
I have a script which is dynamically adding menuItems with submenus to a popup menu (it adds menuItems based on cameras and image planes found in the scene). However, Iīm getting errors (only sometimes, strangely) with these submenu menuItems: "Error... : Collection not found, or no current collection."
When the error occurs, it is found in a line that contains a menuItem with a radioButton. I was looking again over the menuItem flags in the MEL docs, and saw the "-collection" flag, although there are no examples of this flag, and the definition of this flag is "-cl/collection string: To explicitly add a radio menu item to a collection." What does that mean? Apparently I should create a collection somewhere and add the menuItems to this collection, but where and how???
:beer:
David
