So I gave it a shot myself, and I realized the scriptJob only fires when 
the playback is *over*, not during playback.  That being said, scriptJobs 
have both a python cmd and pymel implementation, so there'd be no reason 
you'd need to call to the mel version.

It's possible you could get away with something similar using an API 
MDGMessage callback:
http://help.autodesk.com/view/MAYAUL/2015/ENU/?guid=__cpp_ref_class_m_d_g_message_html
I have notes on how to use these here:
http://mayamel.tiddlyspot.com/#%5B%5BAPI%3A%20How%20can%20I%20author%20callbacks%20for%20Maya%20events%3F%5D%5D
But they *may* have the same failures as the scriptJob : only executing 
when the playback is over.

Even easier than all this though : Just make an expression:

print ("The Frame!" + frame + " \n");


Totally works, and prints every frame during playback.  I create and manage 
expressions from Python all the time:  One button makes the expression node 
if it doesn't exist.  The other button deletes it if it does.  I'm still 
fuzzy on the how\why of all this, but I hope this helps ;)

-- 
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/f816eba4-7f6c-487b-ae20-2bc863453341%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to