Could you elaborate a little or provide a specific example? In general, I
have not had problems using enumerated types—certainly not where the values
are incorrect. An enum in the C++ class simply corresponds to an integer
value as far as Python is concerned, so corresponding zero-based integers
can be used interchangeably where an enum is required. There are, as always,
some exceptions, including a couple of bugs I am aware of:

   - MTransformationMatrix.getRotation Error (when using a rotation order
   enum)
   - api enums passed as reference
   - Python cannot accept pointer to integer as reference to enum type (need
   to use short instead)


On Tue, Jan 19, 2010 at 12:21 PM, Judah Baron <[email protected]> wrote:

> Has anyone experienced problems using Maya's enum values?
>
> We have had to use integer values directly because the enum values we get
> through the class is not correct. It appears to me that the enums coming
> through the python class are all zero based and 'localized' to the
> assocaited class, whereas maya's enums are generally a lot larger and seem
> to be coming from a larger 'global' list of unique values.
>
> thanks,
> -Judah
>
>
>
> --
> http://groups.google.com/group/python_inside_maya
>
-- 
http://groups.google.com/group/python_inside_maya

Reply via email to