-
How to Combine Two Sliders to One Expression (or Two Expression to One Property)
I have four objects (three are duplicates of the first). I am creating this lens flare text-reveal animation using Optical Flares (plugin from Video Copilot).
Each word has its own lens flare, and they’re all identical. If I make any change to one, I have to save it as a preset and apply it to the other flares.I want them to ENTER consecutively (lens flares move from left to right)

and EXIT simultaneously (lens flares move from right to left)

WITHOUT USING KEYFRAMES.Individually, these tasks are very easy. I can pick whip them to a slider control and add a delay time to the 2nd, 3rd, and 4th objects. But then they’d all exit consecutively, and I don’t want that.
I created two sliders, one for the left-to-right animation and the other for the right-to-left animation.
I am trying to combine the two sliders to one expression or rather, I am trying to combine two expressions to one property.
BUT THE SECOND ONE CANCELS OUT THE FIRST. I don’t know how to solve this problem.Here are my expressions: (hover your mouse over the expression and scroll sideways to see the rest)
BeautifulthisComp.layer("Flares Animation!").effect("Position Control (Enter)")("Point")thisComp.layer("Flares Animation!").effect("Position Control (Exit)")("Point")
Meaningfultemp = thisComp.layer("Flares Animation!").effect("Position Control (Enter)")("Point").valueAtTime(time - .6) [0];
[temp, 812]temp = thisComp.layer("Flares Animation!").effect("Position Control (Exit)")("Point").valueAtTime(time - .32) [0];
[temp, 812]
Powerfultemp = thisComp.layer("Flares Animation!").effect("Position Control (Enter)")("Point").valueAtTime(time - 1.4) [0];
[temp, 1288]temp = thisComp.layer("Flares Animation!").effect("Position Control (Exit)")("Point").valueAtTime(time - .57) [0];
[temp, 1288]
Messagetemp = thisComp.layer("Flares Animation!").effect("Position Control (Enter)")("Point").valueAtTime(time - 1.65) [0];
[temp, 1800]temp = thisComp.layer("Flares Animation!").effect("Position Control (Exit)")("Point").valueAtTime(time - .8) [0];
[temp, 1800]As you can see, the delay time is different for each and every object (except for the first one).
I am sure there is a way to combine two sliders to one expression. I just don’t know how to do it.
Another issue in terms of combining two expressions into one expression is I also want to combine loopIn AND loopOut expressions because I want the animation to start before the first keyframe and continue after the last keyframe. Again, the second expression cancels out the first.
UPDATE: I found the solution
if (time > key(1).time) { loopOut("offset") }
else { loopIn("offset") }