hmm.. it does work if I pass it as its own object, I might have to rewrite a bit of code then.. sweet!
quick question, is there any way to edit the value of an enum value? when I do it it looks fine on the surface but when trying to listEnums next I get "[label]=[int]" as the enumerate value when all I want is the "[label]" and said label to equate to [int]
example:
sel[0].myEnum.setEnums('herp:aderp:adee:adoo')
has labels of "herp" "aderp" "adee" "adoo", with respective values of 0, 1, 2, 3 .
but when I want to remove "adee" I want the values to remain the same, just skipping adee's value.
"herp" "aderp" "adoo" with respective values of 0, 1, 3
but if I do it this way
pm.addAttr(spcatr, e=True,
enumName=':'.join(['{}={}'.format(k, e) for k, e in spcatr.getEnums().items() if k != cntspc]))
where spcatr = sel[0].myEnum and cntspc = "adee"
everything after "adee" (which no longer exists) comes in as the string "{k}={e}"