Hmm that's odd, the following works fine here on my end: sel[0].myEnum.setEnums('herp:aderp:adee:adoo')
On Thu, Sep 28, 2023 at 5:21 PM Bryan Money <1975gmo...@gmail.com> wrote: > one would think but I get the "invalid flag" error. > > On Thursday, September 28, 2023 at 2:20:32 PM UTC-7 Bryan Money wrote: > >> 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 python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/d4136905-f15c-4922-b733-4b089709e9a4n%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/d4136905-f15c-4922-b733-4b089709e9a4n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANfFM4o50AOe5PCH3tj6ejY5O3x%3DXbWLSB08t0nvDE3pF4XL2w%40mail.gmail.com.