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

Data driven illustrations.

New Here ,
Jan 20, 2021 Jan 20, 2021

Copy link to clipboard

Copied

I have text frame with content (lets suppose) "Hello, Mike". Is there any way to make to manipulate what is inside the text frame by csv file. I know there are Variables, but variables modify whole object, what I need is to make like this: "Hello, $(name)", and access this name variable?

 

TOPICS
Draw and design , Import and export , Scripting , Tools

Views

254

Translate

Translate

Report

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

correct answers 2 Correct answers

Valorous Hero , Jan 20, 2021 Jan 20, 2021

This involves work with text ranges, and first you have to turn your special syntax template string into an Illustrator TextRange object. Check out this long-ago thread which goes in depth regarding exactly what you are looking for:
https://community.adobe.com/t5/illustrator/regexp-search-and-replace-keep-original-text-formatting/m-p/8440571?page=1

Votes

Translate

Translate
New Here , Jan 20, 2021 Jan 20, 2021

For my personal project this simple code was enough:

 

var replacer = "Mark";
var content = "hello, @name!"
var modContent = content.replace("@name", replacer);

 

Votes

Translate

Translate
Adobe
Valorous Hero ,
Jan 20, 2021 Jan 20, 2021

Copy link to clipboard

Copied

This involves work with text ranges, and first you have to turn your special syntax template string into an Illustrator TextRange object. Check out this long-ago thread which goes in depth regarding exactly what you are looking for:
https://community.adobe.com/t5/illustrator/regexp-search-and-replace-keep-original-text-formatting/m...

Votes

Translate

Translate

Report

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
New Here ,
Jan 20, 2021 Jan 20, 2021

Copy link to clipboard

Copied

For my personal project this simple code was enough:

 

var replacer = "Mark";
var content = "hello, @name!"
var modContent = content.replace("@name", replacer);

 

Votes

Translate

Translate

Report

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
Valorous Hero ,
Jan 20, 2021 Jan 20, 2021

Copy link to clipboard

Copied

LATEST

Oh yes that will take care of the basic needs - I had a hablit in my head from some recent work where it was important to maintain a style of characters - so in that respect most of the thread I linked does overcomplicate it.

Votes

Translate

Translate

Report

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