The Maya Python Api 2.0 doc has a list of notes detailing the differences:
http://docs.autodesk.com/MAYAUL/2013/ENU/Maya-API-Documentation/python-api/index.html

The main syntax differences would be where they use return types instead of 
pointer/reference parameters, and python attributes instead of getter/setters

If you need to use both, because of the lack of completeness in the 2.0 
package, it would be good to keep them imported to distinct namespaces, to 
avoid mixing objects:

import maya.api.OpenMaya as om2  # or something like this




On Mar 8, 2013, at 8:20 PM, 郭金锋 wrote:

> Hi guys,
> Since Maya has introduced Python API 2.0, but not having all classes in 1.0, 
> is there any tips for starters to manage well between 1.0 and 2.0? 
> e.g. Is it always better to import maya.api.*** when possible? 
> Is there any syntax difference when using same classes in between using 1.0 
> and 2.0?
> 
> -- 
> 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 post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
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 post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to