Expression to search for layer name and toggle visibility
Hello,
I have comp which has layers like this:
1_LayerBlue
2_LayerBlue
1_LayerRed
2_LayerRed
2_LayerYellow
The number is basically id of which group layer belongs.
I would like to create a control on opacity:
if layer name has 2
100
else 0
And then I would create dropdown menu, what controls which layers are wanted.
But what I'm stuck at is how to make it search for only part of the name.
I'm not an expert on writing these, so help is really appreciated. Would really like learn more 🙂
