[python] Delay line execution in loop


#1

Hello everyone,
I’m wondering if there is a way to delay line execution in a loop. I mean delay only line execution but not other processes maya does while script runs. Pause command didn’t worked for me, it pauses everything.
Would be nice to have a control over delay time or at least some condition to pause/resume of that line.


#2

Maybe something like this…
https://docs.python.org/2/library/sched.html

Can you give an example of how you want to use this delay? I think it will make a big difference to the answer.

David


#3

maya evalDeffered command can’t help you ?


#4

Thanks guys. I’ll try both of them.