-
Checkbox Triggered Position Follow Issue
Hi!
I have a first text block sitting centered in frame and a second one being animated upwards from the bottom. When a checkbox is activated the first text should start following the second one upwards at exactly the same distance as it had when it got triggered, both texts now moving as one unit. I got almost everything working except that the second block jumps when the switch is triggered, and I can’t for the life of me figure out how to make it work smoothly.
Does anyone have a clue? Or maybe another decent solution for this?
Here’s an example file and the expression looks like this
x = position[0];
y = position[1];
orgY = position.valueAtTime(0)[1];
mainY = thisComp.layer("Main Text").position[1];
if ( thisComp.layer("Main Text").effect("Top Text Follow 2")("Checkbox") > 0 ) {
[x,mainY-y]
} else {
[x,orgY]
}
Many thanks in advance!