Hi David, it would be awesome to get you advise on this.
I’ve added a variable called offSet, see modified script below.
This is because I have a split screen effect where there are two comp’s each using the linear wipe expression you wrote but I didn’t want them wiping in sync, rather for it to look like the wipe is going all the way across the split screen, so the wipe on the right is delayed to create this effect. It does seem to be slowing down the speed of the wipe on the right of screen though, could be my imagination!?
The only other thing I would love to get your input on is… Is there a way to have the fist image, and the last image, in the sequence stay on screen longer than the images in between?
Cheers, Felix
var offSet = thisComp.layer("Controls for Cabinet").effect("offSet")("Slider") * thisComp.frameDuration;
var delay = thisComp.layer("Controls for Cabinet").effect("delay")("Slider") * thisComp.frameDuration;
var trans_time = thisComp.layer("Controls for Cabinet").effect("trans_time")("Slider") * thisComp.frameDuration;
var idx = index - 2; //to make the first solid 0;
var beginTime = ((trans_time * idx) + (delay * idx)) + offSet;
var endTime = beginTime + trans_time + offSet;
linear(time, beginTime, endTime, 0, 100);