-
AECC2017 Script for “Slider to Opacity” trouble
Hi Community!
I have a trouble with my script
I use AEC2017 and I want that the opacity of my Precomp is “turned off” when my slider control is equal or less than 0,02
So
I used a Script of CreativeCow Brother that I found in this blog.
And this script is:
ctrl = thisComp.layer(“control”).effect(“Slider Control”)(“Slider”);
if ( Math.floor( ctrl ) == 1 ) 100 else 0;In this case, with other value obviously, this script works great!
And the mist started to disappear.But when I change that in this:
ctrl = thisComp.layer(“Master”).effect(“Slider Control”)(“Slider”);
if ( Math.floor( ctrl ) <= 0,02 ) 100 else 0;don’t works anymore
Can You help me?
Thank you for your timeps. I tried also these:
-if(thisComp.layer(“Master”).effect(“Slider Control”)(“Slider”)<=0,02) 100 else 0
-if(thisComp.layer(“Null 1”).effect(“Slider Control”)(“Slider”)<=0,02) 100; else 0
-if(thisComp.layer(“Null 1”).effect(“Slider Control”)(“Slider”)<=1) { 100 }else{ 0 }