Mobile app version of vmapp.org
Login or Join
Samaraweera207

: 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!

@Samaraweera207

Posted in: #AdobePhotoshop #Alignment #Button #Text

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!

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera207

2 Comments

Sorted by latest first Latest Oldest Best

 

@Barnes313

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;




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.

10% popularity Vote Up Vote Down


 

@Alves566

Not in Photoshop. In layout applications such as InDesign and Scribus this is generally possible.

What you can do however is put the text in a text box the width of the button. But vertical alignment doesn't exist (see: How to center text vertically within a textbox in Photoshop).

There are ways to make it a little more efficient using the alignment buttons but nothing that will automatically do what you're after.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme