How to create a photoshop script to divide a layer into a grid of separate layers [closed]

StackOverflow https://stackoverflow.com/questions/10644385

  •  09-06-2021
  •  | 
  •  

Pregunta

I have been looking for a solution but I don't think this is possible without writing a script. What I want to do is take a single photoshop layer and divide it into a grid of squares where each square is a separate layer (e.g. a 100px by 100px image broken into 100 10px by 10px squares, each a separate layer).

I know that I can slice the image into a grid and export each square as a separate image, but I want each square to maintain it's position so when all the layers are visible it forms the original image seamlessly (like a bunch of square puzzle pieces).

Any help would be appreciated! Thanks!

¿Fue útil?

Solución 2

Someone responded in the SuperUser forum and wrote me a really nice script. Does exactly what I need it to do and it scales perfectly for differently sized squares and differently sized documents.

https://superuser.com/questions/425811/is-it-possible-in-photoshop-to-convert-slices-into-photoshop-layers

Otros consejos

  1. I think this is what you are looking for: Tile cutter script

  2. You could then import all the tiles stacked into a new image: Great Tutorial

  3. With all your tiles stacked in layers you can run: Layered -> Grid script

The trick is merging 1 and 3

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top