Merge Multiple Text Layers

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

mycort

Merge Multiple Text Layers

Post by mycort »

I know that a text string with multiple lines can be split into individual text layers.....but is there a code snippet for "merging/combining" multiple text layers into one, while stile preserving edit-ability?

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Mike Hale

Merge Multiple Text Layers

Post by Mike Hale »

As long as the formatting or position doesn't matter you can use the Object Model to loop through the text layers appending each one's contents and a line return if you want multiple lines to a new string. Then use that string for the new combined layer.

You still might be able to do it and keep the original formatting of each layer but that would be a lot more work and would require Action Manager.
mycort

Merge Multiple Text Layers

Post by mycort »

thanks for explaining but is it possible to get a sample code? I'm not a programmer and this stuff doesn't make any sense to me:)