I want to create an UI that list all options relative to an attribute that have an option menu and get it in my own option menu.
The UI building is fine but i cant get the option for the attribute. I found this command : "attrEnumOptionMenu"
and it seems to work only with some kind of attribute (dunno if am right or wrong about this) here's the result so far :
Error: RuntimeError: file <maya console> line 10: Invalid attribute.
line 10 being the attrEnumOptionMenu line in my SciptEditor
import maya.cmds as cmds
window = cmds.window()
cmds.columnLayout()
node = cmds.ls(sl=True, type='file')
attrib = node[0] + '.colorSpace'
print attrib
cmds.attrEnumOptionMenu( label='Color space : ', attribute=attrib );
cmds.showWindow( window )