Script for Splitting Layers

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

mycort

Script for Splitting Layers

Post by mycort »

no problem and thanks alot for all your work already, your time and effort is appreciated greatly.

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

mycort

Script for Splitting Layers

Post by mycort »

Is "David"'s code much more faster and efficient? what is the advantage of this code version?
david

Script for Splitting Layers

Post by david »

Mine can handle elements that are spaced by just a single pixel gap.

If there is an island of transparency inside a boundary of pixels, pfaffenbichler's script incorrectly creates an extra layer.

If neither of these apply to you, it doesn't matter which you use. The only other thing is that I combined everything into a single history state so the history isn't cluttered.