RetouchPRO

Go Back   RetouchPRO > Tools > Software > Photoshop Scripting
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Photoshop Scripting Learning and sharing for all platforms

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

Reply
 
Thread Tools
  #1  
Old 07-17-2012, 02:29 PM
MonsterMMORPG's Avatar
MonsterMMORPG MonsterMMORPG is offline
Junior Member
 
Join Date: Jul 2012
Posts: 2
Exclamation 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
Reply With Quote top
  #2  
Old 07-17-2012, 03:22 PM
ratpat13's Avatar
ratpat13 ratpat13 is offline
Member
 
Join Date: Apr 2010
Location: CA
Posts: 85
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/
Reply With Quote top
  #3  
Old 07-18-2012, 02:06 PM
MonsterMMORPG's Avatar
MonsterMMORPG MonsterMMORPG is offline
Junior Member
 
Join Date: Jul 2012
Posts: 2
Re: How to write a script which will read text fil

Quote:
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
Reply With Quote top
Reply

  RetouchPRO > Tools > Software > Photoshop Scripting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File Management/Different Image Sizes rlualhati Input/Output/Workflow 6 10-10-2012 08:27 AM
Vintage Text Technique Gingah Image Help 1 04-07-2012 11:32 PM
How to install Golden Crop script in CS5 portable adtechniques Photoshop Scripting 0 03-14-2012 10:36 PM
Photoshop: is there a script to fit crop ? mantra Software 6 03-13-2012 03:42 AM
TIP: Saving actions as a text file Doug Nelson Photoshop Help 3 04-09-2002 12:26 PM


All times are GMT -6. The time now is 05:51 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved