Can someone point out what I'm doing wrong here? I feel like I've used this approach before to address each layer that belongs to an object.
Nevermind. I'm an idiot. Accidentally reversed the variables in my for loop. Should be "i, layer" instead of "layer, i".