Copy link to clipboard
Copied
Hi All,
In photoshop I am trying to add text styles to inline words in text boxes that are populated by a csv file. For example I would love to be able to add html style tags in the csv file that would change colors of font sizes for example.
To be clear the text is not editable in the interface it would have to be be applied to the text being fed into photoshop automatically.
I would be very grateful for any insight as to whether this could be possible?
Many thanks,
Nick
Copy link to clipboard
Copied
Text editing via Scripts is not exactly comfortable (in my opinion) as it needs using AM code.
I would recommend doing type-heavy work in more appropriate applications (Indesign or Illustrator for example).
How exactly do you imagine the process?
Do the Styles already exist in the layered file, do they need to be created by the Script itself, …?
How many Styles, …?
Copy link to clipboard
Copied
Hi,
Thanks for your reply.
I have pre exisiting phtoshop files from and exisiting work flow.
I would like to automate copy varients of the photoshop files using the .csv and dataset functionality. I was hoping that I could edit the csv's to have standardised tags or custom ones that I could then parse with a script in phtoshop to do simple inline text styles (like making single words colors change and or fonts size changes to certain words in the text box).
Thanks,
Nick
Nick
Copy link to clipboard
Copied
As far as I know Photoshop’s Data Set functionality will not do that (at current).
So you may have to use a Script, in which case it might be more efficient to do the whole variants-operation via Script.
Can you provide screenshots (including the pertinent panels) to illustrate the complete process (the template, the csv, the intended result)?
Do you have Photoshop Scripting experience yet or are you familiar with JavaScript?
Copy link to clipboard
Copied
Hi, Thanks a lot for your input. I am familiar with Javascript but I haven't applied it to photoshop scripts so I need to reseach the basics. Are Javascripts applied via editing actions files in the action panel?
If I have a imple paragraph like this. With Red words with font size changes. Can I import a csv with standard style tags or custom markers around certain words to parse with javascript and change color and font size parameters? Simple example files attached.
Thanks!
Nick
Copy link to clipboard
Copied
Hi, Thanks a lot for your input. I am familiar with Javascript but I haven't applied it to photoshop scripts so I need to reseach the basics. Are Javascripts applied via editing actions files in the action panel?
No, Photoshop Scripts are files in JavaScript (.jsx) or AppleScript or VisualBasic.
They can do what Actions can, but Actions cannot do everything Scripts can, because of the possibility of conditionality for example.
I usually don’t work with csv-files, so I may be missing something, but I fail to see how the type properties are given in »dataset.csv.txt«.
I expect you cannot import the csv-file the way you want to, but the Script can read it and then utilize the content.
Copy link to clipboard
Copied
And as mentioned earlier: I find handling Type Layers via Action Manager-code pretty uncomfortable.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now