Use "Index" to access layers

Understand the code
Post Reply
malex
Posts: 20
Joined: May 21st, 2004, 3:03 pm

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
Post Reply