Script for launching a render after simulation finishes anyone?

Hi, does anyone has a script for launching a render after a simulation finishes? Would be cool to be able to submit a sim to deadline or backburner and get the render launched after that. So we could sleep without waking up in the middle of the night for launching the render manually.

the script is included, just push the edit script button and got to OnSimulationEnd function, it looks like this
fn OnSimulationEnd=(
-- Will be executed once when simulation ends
-- Uncomment the line below to start rendering after the simulation is finished!
-- max quick render
)

you can render also during the simulation, uncommenting the script in the OnNewFrame function.
    rendTimeType = 3
    rendStart = currentTime
    rendEnd = currentTime
    rendSaveFile = true
    rendOutputFilename = “type the destination path including the filename here”
    max quick render--

the rendOutputFilename line can be skipped, in this case it will use the path set by the render dialog, but don’t forget to close the dialog

Cool thanks

For those like me who use the wonderful RPManager with deadline 6.0, we can also use the job scheduler to manually set the time at which the render will start and look at the estimated time left in PhoenixFD to set the that time. (in fact it’s a thinkbox deadline feature accessible through RPManager).