Skip to main content
directimages.nl
Participating Frequently
December 19, 2020
Question

resize shape depending on text

  • December 19, 2020
  • 2 replies
  • 2023 views

I am having some trouble figuring this out, and am suspecting it is not possible in Photoshop at the moment. 

 

For a client i typically have to create many lower third titles (still image png's).

 

What i want to do is make a template (excel sheet) for the client to fill out where they can provide a name and a title, then export a CSV which they send to me. Then i could process that file automatically using a Photoshop droplet that reads from this CSV file. <-- so far so good, this part i can do

 

However the client has specific branding rules where they have boxes behind the lines of text that scale along with the text length. Currently i see no way other than manually adjusting these boxes for each title. 

What i really would like photoshop to do, is look at the text input from the csv file, determine where the text ends and adjust the box size (width) to an x amount of pixels past the last character. 

 

Is what i want to do achievable in photoshop? or would i need to look at After Effects for this workflow? 

This topic has been closed for replies.

2 replies

Chuck Uebele
Community Expert
Community Expert
December 19, 2020

That can all be done fairly easily with a script.

Participant
September 27, 2023

Could you show me how please?

c.pfaffenbichler
Community Expert
Community Expert
September 28, 2023

Please provide a meaningful description of your intended process along with sample images. 

JJMack
Community Expert
Community Expert
December 19, 2020

If you are talking about a text layer and a shape layer. Where the text  area is smaller then the shape area and the text is centered over the shape. You could most like write a Photoshop that would resize the shaped bounds to be some percent larger then the changed text layers bounds and then center the text over over the resized shape.  The Shape Layer Aspect Ratio will vary so the way the shape layer looks will vary.

JJMack
directimages.nl
Participating Frequently
December 19, 2020

Thanks, indeed a text and shap layer. however the shape bounds need to be sizing from a certain anchor point. I managed to get the workflow that i want in Indesign 🙂 good thing Adobe has more than one piece of software.

JJMack
Community Expert
Community Expert
December 20, 2020

With a script you can align a layer to a point as well as resize the layer. If you know the point. You would select the pixel. the align the layer vertical and horizontal center to that selection. You would most likely align the  text layer also to that point,  because you sized the shape layer size to be relative to the text layers bounds.

JJMack