Off the cuff:  Make a method that prints the current frame (like you've 
done).  The "on" button of your ui calls to a *new *method that creates a 
scriptJob and passes the printer method to the *timeChange* arg.   The 
"off" button deletes the scriptJob.  You'd want to put checks in so no more 
than one scriptJob gets made if the user keeps bonking 'on'.   *Should* be 
about that simple. 

-- 
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/4e0fa7f4-ce4f-403b-8c98-9b6c5152a11b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to