Is there a way to create an expression, probably using either a Layer Control or Slider Control, that will allow me to solo or otherwise show only an individual layer of a comp? For example, let's say I have a precomp where every layer is the image of a different car. I'd like to drop this precomp into a main comp, but have the ability within the main comp to select a single layer of the precomp so that it shows only a single car in the main comp. My guess is some combination of index and opacity, but my expression game is pretty weak and I have no idea how to do this.
Ultimately I want to create a template using Master Properties so I can version out a ton of car ads, and something like this would really save me a ton of work.
I feel like I have seen this functionality online before, but now that I need it I cannot find it or figure out how to write it myself.
Any help is greatly appreciated!
Motion Graphics Designer / Art Director
1. Put all 'cars' in a composition called 'all-cars-comp'
2. Put this 'all-cars-comp' into your 'main' master comp.
3. Add slider control to this layer.
4. Apply the following expression to every 'car' layer's opacity, in 'all-cars-comp' selectedIndex = comp("main").layer("all-cars-comp").effect("Slider Control")(1);
carIndex = index;