I tried to solve this, but I'm having some problems.. I want my object to fade from MinOpa -> MaxOpa, when the requirements are met.
I really hope someone can help me out here!
How it looks now with the code posted below..
Code: Select all
//Position//
ConPos = thisComp.layer("Controller").transform.position[0];
CircPos = transform.position[0];
//Opacity//
MaxOpa = 100;
MinOpa = 5;
//Controllers//
s = thisComp.layer("Controller").effect("Tolerance Slider")("Slider");
//EXPRESSION//
if (CircPos>ConPos+s || CircPos<ConPos-s)
{
MinOpa
}else{
MaxOpa
};