Creating label with variable data in illustrator (having different fonts and sizes in same text box)
Copy link to clipboard
Copied
I need to create a artboard based on the specified dimention and create a label based on variable data which is in csv file format. With the default data loading could help to populate data for each label. But the challenge is there is 3 word/characters in single text box which are having different font and size, which I need to ammend manually.
If you all are having any suggestions to optimize creating such labels , please give your proactive inputs.
Image of the label and sample data file attached here with.
Can someone help me to develop an illustrator based script to overcome above issue.
Explore related tutorials & articles
Copy link to clipboard
Copied
Here is one possible approach: TextSync plugin
I don't know of a way scripts can read a text object's XML_ID so you would have to first create the Illustrator document and export the text. If your script modifies this file or creates a new one in a matching format, you should be able to import it. Using AppleScript, you should be able to script SystemEvents to select menu items and automate that part of it, too. I'd expect JavaScript can do that, too, but really have no experience in JS for that.
Copy link to clipboard
Copied
can you break the csv file into 12 columns instead of 4? that should take care of it.
Copy link to clipboard
Copied
bonjour Iranart!
Je peux faire un script à votre convenance, me contacter par mail.
J'ai réalisé un script rapide qui donne le résultat suivant: (j'ai donné des paramètres choisis au hasard, size, font, couleur...)
Le script procède en deux étapes, on crée un texte standard que l'on modifie en utilisant le point puce comme séparateur.
Pour la ligne N°1
Ce résultat est il dans l'esprit de votre attente?
René
Copy link to clipboard
Copied
https://www.bilibili.com/video/BV1g7411o7CL You can take a look at my plug-in
time axis about 07:55

