-
Something weird with Expression code?
I want to directly modify the opacity on a layer using Adobe Expression. I have this code here as a test:
if(thisComp.layer(6).opacity == 95)
{
opacity = 25;
}if(thisComp.layer(6).opacity == 25)
{
opacity = 10;
}
Now if I set my opacity at 95 initially (by myself) it will do the first ‘if’ statement PERFECTLY and then completely overlook the second. I notice that with this code, it doesn’t look at the changes it made to the Opacity at all. Is there a way to DIRECTLY modify it and access it even after the changes?
For example, if I right click and choose ‘edit value’ under opacity. It still says 95% even though the code already changed it to 25%
In short, I want a way to directly modify the opacity using code and accessing it.