Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Maya python delay

1 REPLY 1
Reply
Message 1 of 2
Anonymous
2272 Views, 1 Reply

Maya python delay

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))

1 REPLY 1
Message 2 of 2
haggi_master
in reply to: Anonymous

Try:

import time
time.sleep(10)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report