PDA

View Full Version : Wait until a file is created?


JayHoo
05-28-2009, 10:30 AM
Does anyone know how to wait for a file to be created? I know I can test if a file exists with "filetest -r $file" but I need to wait until this file is rendered and written to disk.

uiron
05-28-2009, 02:57 PM
check once a second? in a "while not file exists, sleep for 1 second" way? not very clean, ofc.

Robert Bateman
05-28-2009, 05:01 PM
you could try evalDefferred, or alternatively start the render using the command line render (rather than the GUI) via popen and wait for the pipe to close.

CGTalk Moderation
05-28-2009, 05:01 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.