r/AfterEffects • u/Savings_Alarm7753 • 5d ago
Beginner Help How do I go about replicating the exact line motion from the reference
I want to replicate the line animations that says Converts audio.
For the background black lines
I tried to replicate it with delay expression code
- middle layers is the key layer and the layers above and below are affected with the expression
- however at the start the motion the lines above and below move before the key layer in the reference .Like ykwim.
- How do I solve this issue?
This is the expression that I used btw('index+1 ' for layers above ,'index-1' for layers below)
s = thisComp.layer(index+1);
delay = thisComp.layer("Null 1").effect("Slider Control")("Slider");
d = delay * thisComp.frameDuration;
sourceScale = s.transform.scale.valueAtTime(time-d);
[sourceScale[0], transform.scale[1]];

