Skip to main content
TᴀW
Legend
February 5, 2017
Answered

Keyboard shortcut for "Distribute vertical space"?

  • February 5, 2017
  • 1 reply
  • 3836 views

I'd like to assign a keyboard shortcut to the "distribute vertical space" command. It's the one in the Align panel, at the bottom left, where it says "Distribute spacing". I'm using it a lot to get two images to abut each other with 0 space between them.

I can't find the command in keyboard shortcuts, nor in Quick Apply.

Anyone know where it is?

Thanks,

Ariel

This topic has been closed for replies.
Correct answer winterm

I guess so. Well, I'll wait a bit to see if anyone else has a brainwave. Otherwise, I'll come back and mark your previous answer as correct, since there doesn't seem to be a way to do this.

Thanks,

Ariel


Hi Ariel

My suggestion so far was "fill a feature request", and this is not an answer good enough to be 'correct'.

I guess the only way to get the thing is scripting.

This one-liner will distribute selected objects with a spacing of a given value:

app.activeDocument.distribute(app.selection, DistributeOptions.VERTICAL_SPACE, undefined, true, 10);

and this one will honor Key Object, but spacing is zero:

app.activeDocument.distribute(app.selection, DistributeOptions.VERTICAL_SPACE, AlignDistributeBounds.KEY_OBJECT, undefined, true, app.activeDocument.selectionKeyObject);

both ignore current Spacing settings in Align panel.

Not a final answer, too. Just a way to go, I believe. I'm not a scripter, let's see what the experts will say.

1 reply

winterm
Legend
February 5, 2017

Object Editing > Vertical Distribute Space:

TᴀW
TᴀWAuthor
Legend
February 5, 2017

Thanks.

I tried that, but I can't get it to work. Nothing happens. Two objects are selected. One is made a key object. But the shortcut doesn't work.

Are you able to get it to work?

(I'm on CC2015)

winterm
Legend
February 5, 2017

Yes, I use it quite often (you see, I do have KB shortcut assigned) and have no problems at all. However, I'm still on CS6.

Does it works from the panel, with the same selection? FWIW, never use 'key object' feature...

EDIT: context selection in KB shortcut panel is OK?