Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

If/else issue since upgrading to CC19 (v16.0)

$
0
0

I just upgraded from AE 15.1.2, and I'm finding that this expression isn't working in v16.0. Does anyone know if there's a change to the way this needs to be written in v16.0?

 

I've got multiple layers, and I'm controlling which layer's opacity is at 100% by changing values on a slider (named Slider Control" that's on Null 1. Here's the expression that says if Slider Control is set to 1, then the opacity for the layer is 100, and if not, then it is 0:

 

if(thisComp.layer("Null 1").effect("Slider Control")("Slider")==1) 100 else 0

 

Opening a project that was made last week in AE 15.1.2, the expression hasn't changed at all, yet works perfectly. But the same expression used in a new project gives this error:

 

“Undefined value used in expression (could be an out of range array subscript?, an expression was disabled as a result of an error.”

 

I can't find any information on changes to expressions that will allow me to figure out how to get this to work in v16.0. Any help is appreciated!


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>