How to create new canvas at photoshop and apply a layer by layer name?

Issue

How to create new canvas at Photoshop and apply a layer by layer name ?

So simple what i want is

Create a new canvas certain size such as 150x40
Apply a layer to that canvas. Select layer by its name

How can i do that these 2 simple things with Photoshop scripting

CS6

Solution

Photoshop Javascript Reference

I believe you’re looking for documents.add() and Layers.getByName().

Answered By – pdizz

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published