Hi,
thanks for the idea. I tried to control a couple of layers and it worked! Fine!
I made a null object and put this expression into a slider control:
Math.floor(clamp(value,2,8));
An on every layer which is controlled by the slider I put this expression to the opacity:
if (thisComp.layer(“Controller”).effect(“Slider”)(“Schieberegler”) == thisLayer.index) 100 else 0;
But now I think about the following: what if I have not only eight layers, but more. Is there a way to find it out by expression(or set the maximum number automatically)?
Like this: Math.floor(clamp(value,2,MaxValue));
I read something about try/catch, does this work or is there another way to achieve this?
Yours, Matthias