View Full Version : render time write in filename

11-14-2003, 09:42 PM
i tried "autosav" from Sven Neve, and it works great,
(it's to save automatically a picture after it's rendered, i'm sure you guys know)

so it's writing in the filename the date and time of when
the picture finished render.

i'm trying to see if it would be possible to put the rendertime
instead. (endtime - starttime = 2min24secs.tga)
does anyone knows how to access this information in lscrpit?

or it could also be like "hour.mins.secs_hour.mins.secs.tga
where the first one would be the time the file got saved,
and the second would be the time it took for the frame to be render.
that would be great! you don't think?


11-15-2003, 08:37 PM
this is from the v2.1 release notes.

A new time() function is available now that will return, as multiple items, the hour,

minute, second, and tick values for the current time. If a time value is provided as

an argument (defined as the number of seconds that have elapsed since January 1st, 1900),

then returns values are relative to that time index.

The hour is in 24-hour military form, so values range from 0 to 23. The minutes and

seconds range from 0 to 59.

The 'tick' value is the number of seconds that that have elapsed since January 1st, 1900.


(h,m,s,t) = time();