When I run this code:
bodyUi = pm.PyNode('bodyUI_C0_ctl')
attribute.addEnumAttribute(bodyUi, 'twistSep', 'Twist', enum=['Twist'], niceName='--------')
It creates the attribute correctly but I get this error:
// Error: line 1: Flags must come before objects: --------
Any idea what needs to change so the error doesn’t appear?
Code keeps running, thankfully, so it’s not a big deal.