Hello Flame people,
Is there an expression that converts speed to timing in the timewarp node, and reverse?
In old versions of flame, those two parameters were linked together, and when you moved the speed, you could see the effect on the timing curve. This might be useful when your timewarp is set on speed and you need to link to an eval expression with camera.
I also want to synchronize two similar travelling shots, using the timewarp values linked to position.tracking.x, but i lost all my mathematical abilities (speed=dx/dt …). Is there a way to link all this (first shot is reference, second shot need to be timewarped to match the speed) with expressions?
Thanks a lot
You can convert timing to speed, but not the other way around.
In the speed channel enter the expression 100*(Timing -(eval(Timing, frame -1))) or
100*(eval(Timing, frame +1)-Timing). The first bases the speed on the difference between the current frame and the previous frame. The latter does the opposite. I use this a lot when I want to see what sort of speed change I’m making when I do my timewarp by timing. I usually use the first one.
Thanks ytf, that is a good clue,
The opposite should be like an integer function but i don’t know how to translate it. it’s sad because you can see the Timing value in that box under the speed parameter, but not in the curve editor.
I find a way to convert a complex speed curve into timing keyframes. But it’s a bit long way.
I’m curious, is there an easy way. Because the values are there. But they are out of reach.
What I’m doing is :
Baking the curve into keyframes.
Copy them to an axis. Export the axis to fbx. Copy the values from fbx.
Run a python script to convert them into timing values.
Paste them to an fbx and import it back again.
can you copy the timewarp node into batch and use eval?
The problem is that the timing number only appears in that window. The actual numbers in the channel editor, which is what eval sources, is just a linear line from frame one to the end.
I have expressions to go the other way, but I’ve never found a simple way to extract timing data from speed.
I found a way to convert to Timing, but it is not an expression and it is not interactive. I made a demo here: https://wdrv.it/6c3559b20
If you have 2026.1 (which has get_timing, get_speed_timing, and set_timing), you can try the script called Invert Timewarps. It can be found in the Logic Portal.
Thanks to @lewis for the idea: lewis in the land of machines
@lewis for president