If you're trying to export stuff per frame over a long sequence, then you 
want the calling code to control the frame step, not Maya's playback 
mechanism.  I've authored tools that export a .obj per frame over a 
framerange for the selected mesh.  In that case, you pass your min\max 
frame-range to pythons range function, and loop over those:  Each loop you 
set Maya's frame to the given iteration, then do the export work you're 
after.  If you're concerned about canceling the job in the middle of some 
super-long sequence, wrapper the whole thing in a progressWindow.  I have 
an example of how to author a progressWindow context manager here:
http://mayamel.tiddlyspot.com/#%5B%5BHow%20can%20I%20author%20a%20progressWindow%20context%20manager%3F%5D%5D
I use this all the time, and sounds like even the example code could get 
you what you're after, since it iterates over a frame range.

-- 
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/4be104b4-a85e-4d7c-b28a-0cfd4911d4a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to