Slider controlled time remapping issue
Dear experts, please help me...
I’m working on a 25fps project. There’s a main comp (~1 min) and a shorter comp (10 frames). The shorter comp is exactly 10 frames long. Each frame shows a different vector graphic number: frame 0 → number 0 … frame 9 → number 9.
This comp with the numbers is duplicated 3 times in the main comp: num_01, num_02, and num_03. I would like to control the numbers inside these comps using 3 sliders on the control_01 layer: sl_01, sl_02, and sl_03. For this, I enabled time remapping on the num comps.
I’m not an expert in scripting, but this is the simplest expression I found:
f = thisComp.layer("control_01").effect("sl_01")("Slider")
t = f * thisComp.frameDuration;
valueAtTime(t);It works…
until I try to set the slider to 6 or above. From 0–5 it shows the correct number, but 6 shows 5, 7 → 6, 8 → 7, 9 → 8, 10 → 9.
after 25 seconds, num_01 and num_02 change 1 frame earlier than the slider’s keyframes (while num_03 changes at the correct time).
I’m really trying to understand what’s happening. On top of that, I get different numbers after each render. I’m a noob, so it doesn’t make sense to me yet. Could you kindly explain what I’m missing?
(*The image is not mine, but similar to my project)
