-
Reference layer by index, defined by slider control
I was wondering if anyone can think of a workaround for this apparent limitation in referencing layers. I am trying to reference a layer by its index, rather than its name. That’s easy but the error comes because I need the index layer to be defined by the user (via slider control). I have something like this:
layerIndex = effect(“Slider Control Name”)(“Slider”);
comp(“Comp Name”).layer(layerIndex).transform.opacitythe error says “index out of range”. Any ideas? Thank you.
After Effects templates – lens flares, light leaks, old film effects, digital glitches, VHS glitches, and more: https://CreationEffects.com