Page 1 of 1

Use "Index" to access layers

Posted: May 24th, 2004, 10:42 am
by malex
Problem : you want to access layers without using their name

Solution (posted by Dan Ebberts on Oct 21 2002)

For example, if you had a comp with "Solid 1" on top
and "Solid 2" beneath it, you could refer to "Solid 1"'s
position from "Solid 2" like this:

this_comp.layer("Solid "+(index-1)).position