Copy link to clipboard
Copied
Okay, so I have a solid & void plan of a town. The buildings are solid black while the rest of the layer is transparent. I want to be able to isolate each building into their own separate layer, it would take way too long to use the standard lasso selection tools so I'm looking for a quicker method.
Bonus points if anyone knows a way of automatically arranging these isolated buildings into size order.
Thank you in advance for any help
Copy link to clipboard
Copied
»a way of automatically arranging these isolated buildings into size order.«
What were you trying to say with this exactly?
Edit: Arrange in the Layers Stack or arrange on the Canvas, and if the latter: how?
Copy link to clipboard
Copied
Hey! thank you for your repy 🙂
I am less concerned about this part but what i meant is that if i had a layer for each building (so varying sizes and shapes of solid black boxes on a transparent background), does photoshop have a way of arranging these layers on the page in order of their size?
Please excuse my lack of photoshop terminology, id still consider myself a beginner.
Copy link to clipboard
Copied
No, there is no default functionality for this.
But again a Script might be created to achieve this.
The number of pixels in a Layer could be determined via the Histogram of its transparency, an Array of the areas, height, width and LayerID created and sorted; then one would need to set rules for the arrangement.
But this would likely be a fairly slow process.
Copy link to clipboard
Copied
Is there be a way to quickly align the layers across a guide, ruler, or just set x or y position?
Copy link to clipboard
Copied
There are Align options availabele in the Options Bar.
There also were Scipt/s for automated alignment and distribution available, you could do a search.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
»I want to be able to isolate each building into their own separate layer«
Sounds like a task more fit for vector editing, for example vectorizing the image in Illustrator and then using the individual paths instead of Layers.
But it might be possible to automate the task in Photoshop if the elements have enough empty space between them.
https://community.adobe.com/t5/photoshop/isolating-groups-of-pixels/m-p/4042904?page=1
https://photoshopscripts.wordpress.com/2012/12/09/split-to-layers/
Copy link to clipboard
Copied
Thank you, i'll give this a try! 🙂
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more