Distribute layers with fixed inserted space
Hello everyone,
I'm trying to create a JavaScript script for Photoshop with the following goal:
To distribute several selected layers horizontally or vertically using a fixed pixel spacing, for example:
If I give a horizontal spacing of 15 pixels, then I want the following:
(width of Layer 1) + 15px + (width of Layer 2) + 15px + (width of Layer 3)
Something equivalent to the "Distribute Horizontally" function of the Move tool, but allowing me to enter the exact pixel value in an EditText field for horizontal and another for vertical, with Layer 1 as the reference point, all through a ScriptUI.
Move.png