Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: How to determine if layers overlap?

$
0
0

Just thought of something that might work.  Create a snapshot of your file in history.  Make a selection of the reference layer, then select the layer you want to check. Apply a gaussian blur or some other function.  If an error is thrown saying that no pixels were selected, then you know that the layers don't overlap.  Use the snapshot to remove the blur.

 

Edit:  Of course if there is even the slightest filled pixel in the selection from anti aliasing, it will show that the layer's overlap.


Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>