Announcement

Collapse
No announcement yet.

How to write a script which will read text file...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to write a script which will read text file...

    I am far away from being photoshop expert. But i need this kind of thing

    A script which will read text file

    This text file will be like

    Name 1 ; Type1; Type2 ; TextStyle1
    Name 2 ; Type3; Type4 ; TextStyle2
    Name 3 ; Type5; Type6 ; TextStyle3

    From that file it will do this.

    For each line

    Find layer named as Type1Type2 then write Name1 on it both horizontally and vertically centered. Then apply a predefined text style (TextStyle1) and save that file as Name 1.png

    Should be pretty simple for those who are master of Photoshop

    Photoshop CS6

  • #2
    Re: How to write a script which will read text fil

    I'm not sure about all the steps you want but i believe the ability to bulk automate using a spreadsheet (or CSV) has been around for a while. Your text feilds would already have to best up how you want them , horizontally and vertically centered with the text style defined. Basically it's just a template waiting to have text fed in it by match the layer name with the value in the CSV. It can aslo be done with images as well.

    I'll search how to do it in Photoshop as i haven't looked at it in a while but i think in Photoshop it's called a "Variable Data Sets" if i remember using the Image > Define Variable and Apply Data Set.

    Here is one video i remember that shows you how to do it:
    http://layersmagazine.com/photoshop-variables.html
    http://tv.adobe.com/watch/adobe-evan...ith-variables/
    http://graphicdesign.stackexchange.c...-from-1-to-100

    I know your asking about Photoshop so this might not apply but it canalso be done in indesign: http://tv.adobe.com/watch/instant-in...th-data-merge/

    Comment


    • #3
      Re: How to write a script which will read text fil

      Originally posted by ratpat13 View Post
      I'm not sure about all the steps you want but i believe the ability to bulk automate using a spreadsheet (or CSV) has been around for a while. Your text feilds would already have to best up how you want them , horizontally and vertically centered with the text style defined. Basically it's just a template waiting to have text fed in it by match the layer name with the value in the CSV. It can aslo be done with images as well.

      I'll search how to do it in Photoshop as i haven't looked at it in a while but i think in Photoshop it's called a "Variable Data Sets" if i remember using the Image > Define Variable and Apply Data Set.

      Here is one video i remember that shows you how to do it:
      http://layersmagazine.com/photoshop-variables.html
      http://tv.adobe.com/watch/adobe-evan...ith-variables/
      http://graphicdesign.stackexchange.c...-from-1-to-100

      I know your asking about Photoshop so this might not apply but it canalso be done in indesign: http://tv.adobe.com/watch/instant-in...th-data-merge/

      thanks for answer. i am going to ask questions simplierly

      here the question

      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
      Apply a layer to that canvas. (script will select layer by its name)


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

      Comment

      Related Topics

      Collapse

      • MagiCat
        Multiple fonts in text layer
        by MagiCat
        I have a template I am using to make headers for a website. I currently have it working to where it will load a text file with all the information, cycle through it, create the graphic and then save it.

        Where I'm running into a problem is if there's a registered trademark in the file,...
        02-23-2005, 12:41 PM
      • eliran84
        Manipulating objects inside a "SMARTOBJECT" ?
        by eliran84
        for(var i=0;i<docRef.artLayers.length;i++) { if(docRef.artLayers[i].kind==LayerKind.SMARTOBJECT) { // how do I access this smart object's layers? } }

        Hello!
        I have a PSD doc I have fully created with Photoshop CS3 Extended (Middle Eastern).
        With a script (or you can...
        11-08-2007, 05:43 PM
      • gmitchel
        Adding a Translucent Copyright Watermark
        by gmitchel
        The new "Tip of the Week" on my site describes how to add an embossed Layer Style that you can use to add a transparent watermark to your image: copyright, logo, studio name, etc.

        http://www.thelightsright.com/Digita...pOfTheWeek.htm

        Unlike...
        08-29-2004, 09:32 PM
      • dhanchey
        Text Warp
        by dhanchey
        I am new to Photoshop and want to add a colored background to warped text that follows the shape of the text and is no higher or wider than the text. Is this possible?
        01-01-2004, 04:02 PM
      • mbrooksh
        Text issue
        by mbrooksh
        Okay, this may be a stupid question but I just can't figure out why my graphic is doing this! I am blowing-up photos to use in our store and want to put single word titles across them. For some reason the text gets truncated despite the size of the bounding box.

        I am using Photoshop...
        08-30-2004, 07:12 PM
      Working...
      X