Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Photoshop text style in .csv Data sets

Community Beginner ,
Mar 13, 2023 Mar 13, 2023

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

TOPICS
Actions and scripting
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Mar 13, 2023 Mar 13, 2023

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, …? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 14, 2023 Mar 14, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 14, 2023 Mar 14, 2023

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? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 14, 2023 Mar 14, 2023

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

 

Nick5FF2_0-1678793817186.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 14, 2023 Mar 14, 2023

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 14, 2023 Mar 14, 2023
LATEST

And as mentioned earlier: I find handling Type Layers via Action Manager-code pretty uncomfortable. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines