Hello again,
I play around with the expressions here and I’ve got 2 problems I can’t fix.
This expression I use to control the 2nd and 3rd keyframe together, but its linear and I like to use the custom ease that I create.
sVal = thisComp.layer(“Control”).effect(“Text Position”)(“Slider”);
if (time < key(2).time)
y = linear(time,key(1).time,key(2).time,key(1).value[0],sVal)
else if (time < key(3).time)
y = sVal
else
y = linear(time,key(3).time,key(4).time,sVal,key(4).value[0]);
[value[0],y+230]
This expression I use to set the start position of a beam that comes in from the right:
x1 = thisComp.layer(“Control”).effect(“Beam Start Position”)(“Slider”);
x = value[0]*x1/key(1).value[0];
[x,value[1]]
I also like to control the end position of the beam on the left side with the last keyframe number 6 (or a different keyframe) with it’s own controller. Also with custom ease (I think that is line two in this expression). I tried to combine this two expressions but I don’t know how. The other thing is, when I change the first keyframe with the slider, also the last keyframe (number 6) changes the position, but I don’t want it in this way.
It would be nice to get some help. Thank you.