pymel.core.general.getEnums

getEnums(attr)
Return type:util.enum.EnumDict
>>> addAttr( "persp", ln='numbers', at='enum', enumName="zero:one:two:thousand=1000:three")
>>> numbers = Attribute('persp.numbers').getEnums()
>>> sorted(numbers.items())
[(u'one', 1), (u'thousand', 1000), (u'three', 1001), (u'two', 2), (u'zero', 0)]
>>> numbers[1]
u'one'
>>> numbers['thousand']
1000

Previous topic

pymel.core.general.getClassification

Next topic

pymel.core.general.group

Core

Core Modules

Other Modules

This Page