--
cheers
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/527d359f-ebd0-4fa1-a1f7-e05749842787%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Sat, Jun 18, 2016 at 8:30 AM Rudi Hammad <rudih...@gmail.com> wrote:Hello,
I was talking with a colleague from the studio, and he told me that they don use the api.2.0 in maya 2015 because it is very buggy.
Do you recommend not using the api 2.0? In the documentation it is recomended to use 2.0, but in practice it doesn´t look a good idea
I am using maya 2016.5, so I don´t know if it is any betterDid your colleague give any example of where it is buggy? I am actually interested to know, since I am not up on the state of it. I've not heard others talk about it being buggy... just incomplete.
--
cheers
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+unsub...@googlegroups.com.
I just use the api to access stuff like MVector, MPoints, etc... I like that with the new api lists are arguments, for example:
import maya.api.OpenMaya as OpenMaya
pointA = OpenMaya.MPoint(cmds.xform('joint1', q=True, t=True, ws=True)) <== works
but
import maya.OpenMaya as oldOm
pointA = oldOm.MPoint(cmds.xform('joint1', q=True, t=True, ws=True)) <== doesn´t work because it doesn´t accept lists
isn´t api 2.0 easier to work with?
El viernes, 17 de junio de 2016, 23:54:18 (UTC+2), Justin Israel escribió:
On Sat, Jun 18, 2016 at 8:30 AM Rudi Hammad <rudih...@gmail.com> wrote:Hello,
I was talking with a colleague from the studio, and he told me that they don use the api.2.0 in maya 2015 because it is very buggy.
Do you recommend not using the api 2.0? In the documentation it is recomended to use 2.0, but in practice it doesn´t look a good idea
I am using maya 2016.5, so I don´t know if it is any betterDid your colleague give any example of where it is buggy? I am actually interested to know, since I am not up on the state of it. I've not heard others talk about it being buggy... just incomplete.
--
cheers
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/527d359f-ebd0-4fa1-a1f7-e05749842787%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/c5ae20a1-bb3e-40f5-9a12-cb1133e22b35%40googlegroups.com.
--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f6dcdac7-0c03-4e1d-b894-71c7c7b69fa3%40googlegroups.com.
On Sat, 18 Jun 2016 11:58 AM Rudi Hammad <rudih...@gmail.com> wrote:oh, ok. Thanks for the tip.
if the api 2.0 is more pythonic, wouldn´t be better to stay with the old api if you are planning on transforming you code to c++?
Some people do the test with python because you don´t have to compile, and when the code works, they do it in c++.
With this workflow, does it make more sense using the old api or it al the same?I can only speak for myself on this, but I feel it would be the the same either way. You either know the C++ api or you don't, and one should be able to port the intent from python to c++ regardless of whether the python code was in the new or old api. Really it is just loops, arguments and error handling that are different. Logic should be exactly the same.My 2cents.
--
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+unsub...@googlegroups.com.
If anything it is incomplete and sometimes you will need to deal with both (as Justin said), but for the supported features I totally recommend it over the old api.Cheers!