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 [email protected].
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.