Quantcast
Channel: Adobe Community : Popular Discussions - After Effects Expressions
Viewing all articles
Browse latest Browse all 47983

Expressions in AE

$
0
0

Hello all,

 

Have a quick question - I'm coming from a flash/actionscript programming background and am fairly new to AE. I started to experiment with expressions, and it seems that communication between layers and other expressions is pretty limited.  For example, when working with actionscript in flash/flex, you could set up 'event listeners' for one object, then when that event is triggered, you can instruct numerous objects to react to that one event.  It doesnt seem that there is any way to do this in AE. For example, write 'one' expression to a null layer that would change the opacity on all the comps layers based on a current point in time.

 

something like:

if(time==2){

     thisComp.layer("layerName").transform.opacity=50;

     thisComp.layer("layerName2").transform.opacity=75;

     thisComp.layer("layerName3").transform.opacity=25;

}

 

Is something like this possible?It seems that each layer has to have its own expression and one layer cannot change another layer's properties/values correct? Or even setting up a global variable would be great in AE, then you could have the layers check for that one variable, but not sure if this is possible either?? Any help will be greatly appreciated, thanks all!

 

Mike


Viewing all articles
Browse latest Browse all 47983

Trending Articles



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