Skip to main content
hamdifem
Inspiring
August 5, 2015
Question

by value distribute spacing

  • August 5, 2015
  • 2 replies
  • 916 views

Can a script written giving it a value (use spacing) distribute vertical spaces

This topic has been closed for replies.

2 replies

March 25, 2019

These should help you out (scripts below),

but I have an additional query, as to how you get the same results but with “Aling to Key Object” selection?

Horizontally:

app.activeDocument.distribute(app.selection, DistributeOptions.HORIZONTAL_SPACE, undefined, true, "1 p");

Vertically:

app.activeDocument.distribute(app.selection, DistributeOptions.VERTICAL_SPACE, undefined, true, "1p");

Thanks.

Align to Key Object activated on image frame on the right. Causing distribute script to fail.

Trevor:
Legend
August 5, 2015