-
reference whatever layer is at a certain position?
is there a way to reference an effect on whichever layer is at a certain point?
i have a stack of tiles that are semi-transparent and behind them a glow. the tiles are parented to a null that scrolls them. the glow changes color based on which tile is centered on the screen. i have it animated by hand, but am trying to script it, so that when i change the scrolling speed i don’t need to then reanimate the glow each time. my thinking is that i could put a Color Control on each tile with the color that the glow should be and then reference that for whichever tile is centered. the tiles never overlap, so there is only ever one over the center point at a time. there is also a small gap in between each tile, so the glow color should stay whatever color it last was when there is no tile over the center point. to get really fancy, it would be ideal if the glow color could start changing into the next color when it gets within 25 pixels of the edge of one tile and land at the next color when it is 25 pixels into the next tile. the tiles could potentially scroll in each y-axis direction, but only ever vertically.
i know there’s a lot here, but my main question is just whether there’s a way to tell the glow which layer is currently over the center point of the comp.