>
> Users writing plug-ins in Python should raise exceptions rather than 
> return MStatus values, unless they want their compute() method to 
> indicate that it is not going to handle a plug. In this case, it should 
> return maya.OpenMaya.kUnknownParameter.


Interesting,  thanks for pointing that out

Le vendredi 24 novembre 2017 12:53:31 UTC-5, Angelo a écrit :
>
> Maya made the change to remove MStatus from the python api so that users 
> handle exceptions through using native python methods. I forget which 
> version they made this change but you can read about it here (Under 
> Exceptions vs MStatus topic).
>
> http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__files_Maya_Python_API_Using_the_Maya_Python_API_htm
>  
> <http://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__files_Maya_Python_API_Using_the_Maya_Python_API_htm>
>

-- 
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/9264afaf-bef8-4470-b097-ef533bbf2db9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to