-
Trigger animation start when certain values are achieved
Hi, Darko here,
I’m having some problems with my expression.Let’s say I want to trigger opacity of one object A going from 0 to 100 when another object B reaches position of x = 500 and y = 500 or grater.
I’ve made trigger and it works fine, but I can’t wrap my head around how to make it animated and not just instant.
Right now when object B reaches x = 500 and y = 500 opacity just jumps from 0 to 100.Here is my expression so far:
o = transform.opacity;
objBx = thisComp.layer("Object B").transform.position[0];
objBy = thisComp.layer("Object B").transform.position[1];if (objBx > 500 && objBy > 500){
o = 100;
}
else{
o = 0;
}
I want to make this without any keyframes, and I think that’s where things get complicated. I’ve tried using linear and ease expressions but I think don’t understand them really good and can’t get them to work.Thanks for your time and help!
Darko Bosic