-
Make a slider control layers visibility
Hey, I have a comp with 4 pre comps inside, each pre-comp is a different view of a character (front, back, left, right). At the minute I have a adjustment layer with 4 sliders, each controlling the opacity of the individual layers to enable a kind of on/off switch by having 4 keyframes, 3 at 0 (0% opacity) and 1 and 1 (100% opacity, I changed the edit value setting on the slider effect to 1 and added *100 to get the value up to 100%). So this works absolutely fine, but I was wondering if there was an expression to streamline my workflow, from 4 keyframes to 1. Maybe like a if\else option or something to let 1 keyframe drive all the values. I don’t expressions well enough but something like if I had another slider controller that if I typed in a value it would pass through and work out the opacities throughout, ultimately perhaps assigning 1 to drive layers 1 opacity, 2 for layer 2, 3 for 3 etc.
So, crudley put something like;if thisComp.layer(“View Controller”).effect(“Front View”)(“Slider”) 1) else 0;
There’s probably more to it than that but any pointers would be appreciated?
Leigh