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

Show and Hide a Layer with Script?

$
0
0

I have about 20 layers of the same comp that I have arranged in a bit of a data diagram. Inside these comps is a common hexagon shape that I want to apply a glow to at specific intervals from the master timeline. What I would love to do is at certain points in time trigger this glow. I used a lot of Flash way back in the day and the way you might do something like this is with the tellTarget command. And you could target Symbols within Symbols as deep as you want and then trigger playback of a certain frame. In this case I would maybe just show and then hide a layer containing a comp of a glow, ideally fading it in and out (maybe it's a loop). I feel like this is something everyone would want to do via a script of some sort.

 

Current for arguments sake this is what my structure looks like and how I think structurally this would work. I have very little AE script knowledge, but understand programming.

 

Master Timeline

-COMP A

--comp1

---compx (layer 2 has the glow and opacity 0%)

--comp2

---compx (layer 2 has the glow and opacity 0%)

--comp3

---compx (layer 2 has the glow and opacity 0%)

 

So let's say at a certain point in time I want to show the glow on comp2 I would imagine in COMPA it would look something like this:

 

comp1.compx.layer2.opacity = 100;

 

Then when I want it off:

 

comp1.compx.layer2.opacity = 0;

 

I would want the opacity to fade up though and then fade out.

 

Am I barking up the wrong tree here?


Viewing all articles
Browse latest Browse all 2143

Latest Images

Trending Articles



Latest Images

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