Can you test if an image is "off screen"?
Posted: December 5th, 2005, 5:30 am
Hi all,
I'd like to be able to test whether a given image is at all visible within the comp area or not, judging from its transform attributes. I.e. "is it positioned completely off screen?"
This requires looking at the layer's position, anchor point, rotation, scale etc. (And if there's a mask on the layer, it's even more complicated! But we can ignore that case for the moment...)
Any ideas or tips on how to do this?
A function that would tell me the bounding box of the layer (in absolute coordinates) would be very helpful - if one exists!
Miki
I'd like to be able to test whether a given image is at all visible within the comp area or not, judging from its transform attributes. I.e. "is it positioned completely off screen?"
This requires looking at the layer's position, anchor point, rotation, scale etc. (And if there's a mask on the layer, it's even more complicated! But we can ignore that case for the moment...)
Any ideas or tips on how to do this?
A function that would tell me the bounding box of the layer (in absolute coordinates) would be very helpful - if one exists!
Miki