Auto center in Photoshop

Is there any way to auto center button and text Photoshop? so when i change the size of the text i wont need to re-align it manually in the button.
Many thanks!

Answer

You can do this in Photoshop if you look into Photoshop scripting. You do not indicate what version of Photoshop you’re using but here is the documentation for multiple versions of Photoshop.

If your target button is on a layer you could do something like:

theButton = app.activeDocument.artLayers.getByName("button");

and then target the text with something along the lines of:

.textItem.Justification.CENTER;

enter image description here

If you are not wanting to go the scripting route I would encourage you to use InDesign as this is what is best suited for this type of thing.

Attribution
Source : Link , Question Author : Gal , Answer Author : DᴀʀᴛʜVᴀᴅᴇʀ

Leave a Comment