-
IF / ELSE scale expression
Hello Guys!
I got two layers in a composition BARGRAPH and SHAPE10
I am making the BARGRAPH grow from 0% to 100% on the y-axis (scale) over different amounts of time.
As it grows, I want some shapes to pop-up on the screen when the scale reaches, on the y-axis ,for example 10%, 20%, 30%….
So, when the BARGRAPH y-scale reaches 10%, I want to link it to the SHAPE10 scale, so the SHAPE10 scale will grow from 0% to 100%. The movement needs to last something like half a second, so it will not just appear on the screen.
I know I need to apply on the SHAPE10 scale, something like this:
if(thisComp.layer(“BARGRAPH”).transform.scale[1]>10) 100 else 0;
But I know it is not right and I need to work on the dimensions, arrays and everything…
I have no idea how to make it work, i’ve been working with motion design for 5 years, but expressions are really hard for me.
Thanks in advance!