Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

HELP! How to automatically split a layer into multiple new ones

Community Beginner ,
Jan 20, 2021 Jan 20, 2021

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

 

TOPICS
Windows
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Jan 20, 2021 Jan 20, 2021

»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? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 20, 2021 Jan 20, 2021

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 20, 2021 Jan 20, 2021

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 20, 2021 Jan 20, 2021

Is there be a way to quickly align the layers across a guide, ruler, or just set x or y position? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 20, 2021 Jan 20, 2021

There are Align options availabele in the Options Bar. 

Screenshot 2021-01-20 at 12.31.36.png

 

There also were Scipt/s for automated alignment and distribution available, you could do a search. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 20, 2021 Jan 20, 2021
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 20, 2021 Jan 20, 2021

»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/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 20, 2021 Jan 20, 2021

Thank you, i'll give this a try! 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines