Skip navigation
MonsterMMORPG
Currently Being Moderated

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

Jul 18, 2012 12:03 PM

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

So simply what i want is

Create a new canvas certain size such as 150x40 pixels
Apply a layer to that canvas. Script will select the layer by layer name

 

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

CS6

 
Replies
  • JJMack
    3,413 posts
    Jan 9, 2006
    Currently Being Moderated
    Jul 18, 2012 1:54 PM   in reply to MonsterMMORPG

    Something like var doc = app.documents.add(width, height, res);

    When you write Apply a layer what do you mean Script will select layer by name. A new document will have a background layer or a normal layer do you want to rename that there is onle one layer. Or do you want to add a layer by name what kind?

     
    |
    Mark as:
  • JJMack
    3,413 posts
    Jan 9, 2006
    Currently Being Moderated
    Jul 18, 2012 7:22 PM   in reply to MonsterMMORPG

    Are you a programmer do you know Apple Script, or JavaScript or Visual Basic? You show a layered document with a raster layer added how do you intend to add that layer. How well do you know Photpshop.  Do you know anything about Photoshop scripting? What platform do you need the script for PC, Mac or both. Have you read the Photoshop Scripting manuals in Photoshops Scripting Documents folder and looked at the sample scripts or the scripts thet ship with Photoshop?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 18, 2012 11:27 PM   in reply to MonsterMMORPG

    Do you want to create a blank Layer of a certain name in the new document or do you want to duplicate a Layer of a certain name from an existing/open file to that new image?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points