Andy Mees wrote:- Code: Select all
:hours=floor(time/360); minutes=floor(time/6)%60; seconds=floor(time*10)%60; return Text(string.format("%02.f",hours)..":"..string.format("%02.f",minutes)..":"..string.format("%02.f",seconds));
or the simpler
- Code: Select all
os.date("%H:%M:%S",(time*10)-3600)
Thanks Andy for this example, that's exactly what I was looking for.
I knew for formulas but I didn't know how to implement them and write the code.
In my timeLapse (9278 photos), interval setting of my camera was 10 sec but in reality pictures has been shooted with 11 sec at beginning and 13 sec at the end!!!
An average of 12 sec!!
In my time lapse I have some events that has to be dated correctly.
So doing some calculations with average interval do not match correctly. There is still some time distortion.
I have started a mathematical study using polynomial Lagrange interpolation in order use it in Expression and display correct time in final video.
I will post results when it will be finished.
Another way to do and avoid fastidious mathematical work would be to use directly in Expression Exif time data. I came across Fusion manual but didn't find such thing.
May be it's not possible to use Exif time data in Expression ?