-
Dynamically controlling layers using the ‘Layer Control’ Expression Control
I have been scouring the net for AGES trying to find an answer to this problem…!
Say i have a comp full of various layers. At the top of the layers i have an adjustment layer which contain a Slider Control and a Layer Control. Is there some kind of reverse working expression that would allow me to select a layer using the Layer Control, and then control the opacity of THAT selected layer using the slider control.
I’m aware that i could apply an expression to the layer’s opacity directly and have it be controlled by the slider, but i want the slider to control the opacity of the layer which is in the Layer Control.
So for instance (to confirm)…
I have 3 layers in a comp,
> 1. [Adjustment Layer]
> 2. [Blue Solid]
> 3. [Red Solid]On the adjustment layer i have 2 expression controls:
– Layer Control
– Slider ControlBy selecting the dropdown on the layer control and selecting [Red Solid] i want the slider control to start controlling the opacity (or any parameter) of the [Red Solid], and if i switch the layer control to [Blue Solid] the slider would then control the [Blue Solid].
The reason i’m not applying the expression directly to the layers themselves is so i can save this as a preset and it will not rely on the same layer structure when applied to a new comp.
Please advise me someone! 🙂
Thanks guys