Question
[Script] Check if a layer is visible.
Is there a way to tell if the pixels of a layer are visible in a specific time?
Things like .width or .sourceRectAtTime will give the original dimensions of a layer, even if the opacity/scale is set to 0. But how to mesure what's actually visible in the screen?
I found sampleImage(), which might do the trick, but I honestly have no idea how to make it work, even after reading the documentation.
Thanks!
