-
Use Comp Name as layer index value?
Hi,
I’m planning on duplicating a bunch of comps. First comp is called “1”. When duplicating next one will be 2 and so on.
I was hoping to use these comp names as values in order to retrive data from layers in another comp. So the comp “2” would refer to layer 2 in this other comp.
I tried this:
cubeNumber=thisComp.name;src=comp(“valores-colores”).layer(cubeNumber);
Which doesn’t work since cubeNumber is a name and not a value.
Is there a way of turning the comp.name into a value?
There’s a hundred layers so I was hoping to avoid changing all duplicated comps ….