FORUMS: list search recent posts

Layer Control to drive opacity of a single layer

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Craig Kristensen
Layer Control to drive opacity of a single layer
on Apr 28, 2016 at 8:38:30 am

I have a comp with hundreds of layers (all with an opacity of 0), and I need an easy way to select just one layer and make it visible.

Is this possible with "Layer Control"? Possibly in combination with a Check box that sets the opacity value to 100 when checked?

Craig


Return to posts index

Craig Kristensen
Re: Layer Control to drive opacity of a single layer
on Apr 28, 2016 at 9:11:50 am

I have been trying to get something like this to work.
I have a text layer that reads the value of the Layer Control using:
thisComp.layer("— SELECT").effect("Selector")("Layer").name

And then using this on the opacity for each layer to check if the "FRANCHISE NAME" equals the name of the layer. If so, "then opacity = 100"
ifi(thisComp.layer("FRANCHISE NAME").text.sourceText = ("thisLayer.name")) 100 else 0;

But I'm having some syntax troubles.


Return to posts index


Walter Soyka
Re: Layer Control to drive opacity of a single layer
on Apr 28, 2016 at 9:53:35 am

[Craig Kristensen] "I have a text layer that reads the value of the Layer Control using:"

Layer Controls cannot be keyframed, so this value will be constant throughout the comp. It doesn't sound like that's what you want.


[Craig Kristensen] "ifi(thisComp.layer("FRANCHISE NAME").text.sourceText = ("thisLayer.name")) 100 else 0;
"


Here's the correct syntax:
if (thisComp.layer("FRANCHISE NAME").text.sourceText == thisLayer.name) 100 else 0;

1) It's "if" not "ifi".

2) Equality comparison uses "==" not "=".

3) There is no reason to enclose thisLayer.name in quotes and parentheses. "name" is an attribute of the object called "thisLayer".

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index


Craig Kristensen
Re: Layer Control to drive opacity of a single layer
on Apr 28, 2016 at 10:02:37 am

Works perfectly!

Is it possible to use a Layer Control to select layers in a different comp?


Return to posts index

Walter Soyka
Re: Layer Control to drive opacity of a single layer
on Apr 28, 2016 at 10:19:31 am

[Craig Kristensen] "Is it possible to use a Layer Control to select layers in a different comp?"

No, but you could refer from your main comp to a layer control effect on a layer in a different composition:

comp("OTHER COMP").layer("— SELECT").effect("Selector")("Layer").name

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Wallace Adrian D'Alessio
Re: Layer Control to drive opacity of a single layer
on Apr 29, 2016 at 3:21:04 pm

You can precomp . Then drag out timelines for the precomp and the comp and then pick whip across.

I have done it.


.

Adrian D'Alessio aka; Fluxstringer

fluxstringer@gmail.com
http://www.facebook.com/FluxStringer
http://www.linkedin.com/in/fluxstreamcommunications

http://twitter.com/FluxStringer
http://mog.com/FluxMuse


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]