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 <konstrukt...@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 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_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAXCBRA43fw_BW0tmudgc15A0trjHyUmBDQcbFfOVWwFg%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAXCBRA43fw_BW0tmudgc15A0trjHyUmBDQcbFfOVWwFg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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+unsubscr...@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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to