-
index number driven by a variable?!
Hey all,
I’m trying to build a comp that looks at the layers of another comp and takes the position of a desired layer. what I have so far is this…
temp = comp("NamesList").layer(135).transform.position.valueAtTime(0);
x = temp[0];
y = temp[1];[x,y]
This works fine, but I wanted to add an expression control slider that drives the desired index number, like this…
numBer = effect("layer number")("Slider");temp = comp("NamesList").layer(numBer).transform.position.valueAtTime(0);
x = temp[0];
y = temp[1];[x,y]
Which doesn’t work! I get this error…
After Effects warning: Bad Argument: Layer index 671826536 out of range
any ideas?!