So I'm using Photoshop CS6 and I'm lookig to write a script that will size the text that is imported from a data set (csv) to fit a text layer, and scale it down until all of the text fits in the layer. Seems simple enough, but I haven't been able to get it working. My thoughts on how it will flow:
1) Have the script make an array of all of the text layers (or layers of specific names) and their sizes (width and height).
2) Resize the imported text to fit that specific layer based on the width and height discovered and available in the array. The text cannot be larger than 72px, and should scale down 4px until it fits the text layer. Text wrapping is permitted, I just need it to fit into the layer.
3) Rinse and repeat for the other text layers.
Anyone have any ideas? |