Maya python delay

Maya python delay

Anonymous
Not applicable
2,543 Views
1 Reply
Message 1 of 2

Maya python delay

Anonymous
Not applicable

I have a script that renders a sequence of frames (code below). How do I make it so after it switches to the next frame there is a 10 second delay before it starts rendering?

 

import maya.cmds as cmds
import maya.mel as mel

startFrom = 102
renderTill = 104

mel.eval('currentTime %s ;'%(startFrom))
while(startFrom < renderTill):
    mel.eval('renderWindowRender redoPreviousRender renderView;')
    startFrom += 1
    mel.eval('currentTime %s ;'%(startFrom))

0 Likes
2,544 Views
1 Reply
Reply (1)
Message 2 of 2

haggi_master
Advocate
Advocate

Try:

import time
time.sleep(10)
0 Likes