--
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/cb4b9aeb-c0fc-4ca4-b2b1-5e92bedca3a9%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/CAN0Hdevj6FEA53UL9YyKcctV_7QrUpLr-RK0ZtqMuo2OZZXy4A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FEyPZrr6qGQ%2BjL4MEVz9m-CZ1Yq15%3DSva67mLic8d9c_w%40mail.gmail.com.
Hey there - we had a similar issue with a python plugin in 2016, and it turned out to be related to the new multi threaded graph evaluation and the python GIL. Try turning that off in the prefs and see if it works.
If that is the cause, you can try a fix suggested by a fine fellow at autodesk: set the environment variable $MAYA_RELEASE_PYTHON_GIL to 1 before launching maya, and hopefully it works.
According to autodesk support, setting this on has no adverse side effects, but I'm leery - if so, why not have it on by default? That said, it's worked for us beautifully so far, without any noticeable issues...
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAN0HdeuD5Y8Gb677%3DHm14K0-LZ9kSdu8hitq0zPjSLRBVVS6sA%40mail.gmail.com.
Hey there - we had a similar issue with a python plugin in 2016, and it turned out to be related to the new multi threaded graph evaluation and the python GIL. Try turning that off in the prefs and see if it works.
If that is the cause, you can try a fix suggested by a fine fellow at autodesk: set the environment variable $MAYA_RELEASE_PYTHON_GIL to 1 before launching maya, and hopefully it works.
According to autodesk support, setting this on has no adverse side effects, but I'm leery - if so, why not have it on by default? That said, it's worked for us beautifully so far, without any noticeable issues...
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAssL7Yx%2B58uqiTYWYdLs6BiaCaM0ugzXnn6vpLiYiV-2qXdzQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0azZ7WKq7vST83MVg32pNWL8-qfGPr3ENOQcJpd%3DKZtw%40mail.gmail.com.
From what I hear, the parallel graph evaluation has caused a good deal of problems, for those that have written code that isn't threadsafe
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANEMyhPavVkRmYE6%2BmZKYNqPqe6X5jrb5j8K82bjPBjx3NeQcQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2BdV%2BucK5hf6F%2Bb7_d3kvs7DyFLOuuPBQmcM5mbjNQWg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAssL7bBknN9xpwiGAVay02Hqv42w%3DD2M6S9wh%2BwDqW6DCBFqw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3cjoDY8yPWARo8HmMisvs7WG7ep1wQZgtmNydCuGPPAA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAssL7aHbWdMzhB7VeReCaykoY28N4ASG2afZoR6QbEG6PunbQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAN0Hdes42VehHpd1KQL67WzBBXmVmX18_jMXgr7JymC6kMq1YQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FF71FerVmCXOCKROrQaVTgw%3DOEp%2BjWY2CKCOb%2BGRjQOMQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAssL7bocj9E55LFg9wYXbdHUe7pmFi%2BKooWMyHAaARw1E3wjg%40mail.gmail.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/CAFRtmOBfX%3DB-APtnsnq6whEvW3XknDjX7TFe53mVs9La7ouPoQ%40mail.gmail.com.
all the code I’ve done over the last 3 years has been Red9 so kind of not surprising
What I meant was that if you do your homework and narrow your problem down before asking for help, it will encourage others to help and likely increase the chances of a solution being found. I think you’ll also find that the solution has little to do with your software, which makes mentioning it unnecessary.
all the code I’ve done over the last 3 years has been Red9 so kind of not surprising
What I meant was that if you do your homework and narrow your problem down before asking for help, it will encourage others to help and likely increase the chances of a solution being found. I think you’ll also find that the solution has little to do with your software, which makes mentioning it unnecessary.
--
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/CAFRtmOCyR-%3DX_WdK7yB63S2k%2BDBYbbTJ8EgRXDb1d2C%3DkCPx4A%40mail.gmail.com.
Ok, that is still not a complete example.
# Traceback (most recent call last):
# File "<maya console>", line 2, in <module>
# NameError: name 'apiAnim' is not defined #
I had to go to Google to find out that MAnimControl
is declared in maya.OpenMayaAnim
, and MTime
in maya.OpenMaya
.
from maya import OpenMaya, OpenMayaAnim
for t in range(1,100):
OpenMayaAnim.MAnimControl.setCurrentTime(OpenMaya.MTime(t))
Which works fine here, on Windows 8.1, Maya 2016.
If you can’t narrow down your problem to a reproducible case, something I can copy/paste into my Maya script editor and see the exact same result as what you have, there is very little anyone can do. Include all imports, include any nodes you may have created and any particular Maya settings you may have set.
--
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/CAFRtmOAXCBRA43fw_BW0tmudgc15A0trjHyUmBDQcbFfOVWwFg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAssL7bXpy4eX40O9AYr5%3DgxtX0OFUfGHnx%3Dk8s2U5Yj%2BTmTfA%40mail.gmail.com.
Thanks Paul, I spoke to the devs on Friday and apparently the GIL issue was solved in the latest drop of 2016. It turned out that the client rig in question was internally running Adam Mechley's shoulder solver and that was causing the hang and crashes in Parallel.One thing that did come up was that running a tool which iterates time can run approx a third of the speed in parallel as it does in DG because apparently with the EM manager each time change will result in parallel evaluation of everything that is time dependent, rather than DG that just sets everything dirty. I did some tests on some of our pipeline and it really did speed things up switching to DG to compute. I was thinking of doing a simple context manager to switch on entry of a time related tool, then revert back to parallel on exit.Anybody else come across this?
On 11 April 2016 at 18:27, Paul Molodowitch <elro...@gmail.com> wrote:
We had a similar situation, though it was with a third party python plugin - it also would crash when changing the timeline, I believe.We asked autodesk about it, and were told about a secret environment variable, MAYA_RELEASE_PYTHON_GIL, that if set to 1, would magically fix our problem. We asked what the side effects were, and were told there were none... Not sure why it's not on by default, then, and it still makes me kind of nervous... but it seems to have worked well for us. Give it a shot...- Paul
On Sat, Apr 9, 2016 at 2:26 AM Marcus Ottosson <konstr...@gmail.com> wrote:
--Ok, that is still not a complete example.
- Where is the rig?
- Where are the import statements?
# Traceback (most recent call last): # File "<maya console>", line 2, in <module> # NameError: name 'apiAnim' is not defined #
I had to go to Google to find out that
MAnimControl
is declared inmaya.OpenMayaAnim
, andMTime
inmaya.OpenMaya
.from maya import OpenMaya, OpenMayaAnim for t in range(1,100): OpenMayaAnim.MAnimControl.setCurrentTime(OpenMaya.MTime(t))
Which works fine here, on Windows 8.1, Maya 2016.
If you can’t narrow down your problem to a reproducible case, something I can copy/paste into my Maya script editor and see the exact same result as what you have, there is very little anyone can do. Include all imports, include any nodes you may have created and any particular Maya settings you may have set.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAXCBRA43fw_BW0tmudgc15A0trjHyUmBDQcbFfOVWwFg%40mail.gmail.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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAssL7bXpy4eX40O9AYr5%3DgxtX0OFUfGHnx%3Dk8s2U5Yj%2BTmTfA%40mail.gmail.com.
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/CAFRtmOAXCBRA43fw_BW0tmudgc15A0trjHyUmBDQcbFfOVWwFg%40mail.gmail.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/CAAssL7bXpy4eX40O9AYr5%3DgxtX0OFUfGHnx%3Dk8s2U5Yj%2BTmTfA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/8f4fc5f1-9c7f-4f28-9f78-0b1a43bab3ba%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.