Dashboard_avatar
Feb 18, 2012
Post id: 309654 Report Item

Hi there, I''ve added a custom attribute to a node using the following code but i cant fugure out how to put it under its own layout, rather than in 'extra attributes'. Does anyone know how to do this?

cmds.addAttr('object1', longName='attribute', shortName='attr', at='enum', en='one:two:three')



Thanks!

jt 

Dashboard_avatar
Feb 19, 2012
Post id: 309661 Report Item

>> Does anyone know how to do this?

You need to edit the ae template of the node. Normally youd reserve this for your own nodes because you now must manage ALL nodes of this type yourself.