Can anyone help me fix this transition expression? Almost there!
Hi
I am creating a transition animation for many layers where both the duration of time the layer is showing and the time it takes for the effect transition (image wipe & scale) need to decrease for each one in turn.
For example:
Layer 1 - Show image without changing for 0.5s, then image wipe from 0-100 and scale from 50-64 for 0.5s.
Layer 2 - Show without changing for 0.49s, then same transition as above for 0.49s.
Layer 3 - 0.485s, 0.485s
And so on...
I have about 60 images (I know I can't go these exact timings as it's 24fps but it's just to give an idea of what I need). I'm aaaalmost there, now each layer transition decreases in time (but the overall "screen time" of each layer stays exactly the same)
Here is what I have so far:
LAYER 1:
duration = 0.5;
linear(time, inPoint, inPoint + duration, 0, 100)
LAYER 2 ONWARDS
prevLayer = index - 1;
prevDuration = thisComp.layer(prevLayer).effect("CC Image Wipe")("Completion").key(2).time + thisComp.layer(prevLayer).inPoint;
duration = Math.pow(0.95, prevLayer - 1) * prevDuration;
startAt = thisComp.layer(index).inPoint + (prevDuration * (prevLayer - 1));
endAt = startAt + duration;
linear(time, startAt, endAt, 0, 100)
As I don't know exactly how long I want the overall composition to be (I will play with the start duration and the multiplier) all the layers are compositions that are 1.5mins long each. I know it's just for image wipe but tbh i'll be happy with just that for now, i'm sure i could copy it across for scale if i can get it working.
I've shared a cut down version of the project with 3 images that repeat with it all set up here:
https://drive.google.com/drive/folders/1kJSaabXoqbsYpH2PNh52O3CFfi4HhuFY?usp=sharing
Access is set so anyone with link can edit, so if it would be easier to save over this to show me that would be cool too!
I've posted a few times in more than 1 place but only manage to progress somewhat each time before the post goes cold so if anyone can help me get it across the line i'd really appreciate it!
Thanks
