if we use pymel is there a more object oriented way of doing this?

import pymel.core as pm
sel = pm.ls(sl = True)
sel[0].addAttr('myEnum', at = 'enum', en = 'herp:aderp', k = True, h = 
False)

is nice as I can affect each PyNode directly but I get the same error Bay 
gets if I then use
sel[0].addAttr('myEnum', e = True, en = 'no:herps')

On Thursday, August 31, 2023 at 3:31:50 AM UTC-7 Benson Black wrote:

> Thank you! This has been very helpful to me. Cheers!
>
> On Tuesday, 24 February 2015 at 16:15:47 UTC Bay wrote:
>
>> Aha....I didn't know that. Thank you very much for the help! :) 
>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/cb0e3772-3568-42b2-86f1-b70acac52eb8n%40googlegroups.com.

Reply via email to