-
Expression value to a keyframe
hi there!
yesterday i searched for a good way to give my first keyframe a value and my second keyframe another value.logical (for me) it would be like this:
s = thisComp.layer("control").effect("example")("example");
key(1).value = 0;
key(2).value = s;but i found a solution in this forum where it was told that i have to go via keytime, like this:
(had to put it to the end of the post)the second code works fine, buti think, this is far to complicated to solve my problem.
does anybody have a better approach to this?
????max = thisComp.layer("control").effect("example")("example");
min = 0;
t1 = key(1).time;
t2 = key(2).time
if (time<=t1) min;
else if (time>t1 && time<t2) ease(time,t1,t2,min,max);
else max;