I need to store the names of all avaliable items of an enumeration attribute into a string array, so that I can build a popup menu containing those items.
I can't find a command, and "getAttr -as ..." only returns the name of the currently selected item
QUOTE names of .. items of an enumeration attribute what do you mean?
Objects that have a special attribute?
take all objects and seek them for that attribute. CODE string $nameArray[]; string $all[] = ls; for ($item in $all){ if (attributeExists attribName $item){ $nameArray[size($nameArray)] = $item; } } Or am I missunderstanding you? I'm not familiar with enumeration attributes.
Or some other way to make the contents of the enumeration attribute visible and selectable in the dagMenu (the one which pops up when you right click a node)