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

Multiple datasets on a single sheet

New Here ,
Aug 20, 2011 Aug 20, 2011

Hi! I'm a newbie at Illustrator scripting and I wish to create a set of data-driven labels. The labels are to be printed 16-up per sheet. I have gotten the XML file to work and Illustrator is able to pick up the data however it only allows me to change the first label in that .AI.

What do I have to do in order to print 16 different datasets of labels per sheet?

TOPICS
Scripting
5.4K
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

correct answers 1 Correct answer

Enthusiast , Aug 21, 2011 Aug 21, 2011

ledesirardent wrote:

Oh and I already grouped them. Not sure what else I'm supposed to do here.

Before run it, you should draw a rectangle on top, select the rectangle and all others and then group all.

For your second question, all you need is apply a (4*4) transform effect to you data group.

Translate
Adobe
Enthusiast ,
Aug 20, 2011 Aug 20, 2011

May this snippet help you!

It merge all you dataSet into a new illustrator document, like Indesign's dataMerge function do.

You only need one label, delete others, and the script will create for you. Just make sure to draw a rectangle on top of all you data object, group all and run this script. Save your works first!

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
New Here ,
Aug 20, 2011 Aug 20, 2011

dataset.jpg

Thanks @moluapple for the advice but unfortunately that's not exactly what I'm looking for. Sorry if I wasn't being clear with my question earlier but I'm not looking for a script that auto-generates all my datasets in one sheet. I wish to have more control over what datasets that needs to be printed in one sheet so I'm wondering if there's a script out there that can like me select what datasets I wish to get printed per sheet.

I've taken a screenshot of my artwork and an example of my dilemma is as shown: I wanted to change the dataset for the selected blue box but it changed the first box instead. I wish to be able to click each box and select the dataset and move over to the next and voila, print. I only need 16 different datasets to be printed per sheet.

Is that possible?

I hope you understand what I mean.

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
Enthusiast ,
Aug 20, 2011 Aug 20, 2011

What you had asked is impossible, because of your misunderstanding of illustrator's variables property: one variable can only binding to one object(or multi object with same value)!

OK, I upload a video for you, doesn't this what you need indeed?

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
New Here ,
Aug 20, 2011 Aug 20, 2011

Hi @moluapple, this looks something very close to what I need! I can't read Chinese text so I'm not exactly sure how I can achieve that. Would you be able to provide me a script or a tutorial? I would gladly appreciate it!

Also, what happens if I have more than 16 datasets? Will it overflow within one sheet or immediately generate the next 16 datasets on another sheet?

Thanks so much for your help!

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
Enthusiast ,
Aug 20, 2011 Aug 20, 2011

You can download the script directly, here is the link (try "save as" it).

Also, what happens if I have more than 16 datasets? Will it overflow within one sheet or immediately generate the next 16 datasets on another sheet?

Yes, the answer is on another sheet. Since you are using Illustrator CS5, It will create multi (upto 100) artboards(sheet) according to your datasets's length, and how many "datasets" per sheet is determined by the bounds of you data objects group (yes you should group them first, like what I have said in my first post).

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
New Here ,
Aug 20, 2011 Aug 20, 2011

Thank @moluapple! Not sure what I did wrong but when I ran the script, this happened.

datasetII.jpg

Am I supposed to do something to the script? I'm sorry for looking stupid, I'm new to working with scripts.

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
New Here ,
Aug 20, 2011 Aug 20, 2011

Oh and I already grouped them. Not sure what else I'm supposed to do here.

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
New Here ,
Aug 21, 2011 Aug 21, 2011

Sorry @moluapple for the flood of posts, but I'm also open to exploring other methods of working with datasets. Is there also a way to have multiple objects (16 per sheet) of the same dataset? If so, how do I do that? Is there a script for it?

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
Enthusiast ,
Aug 21, 2011 Aug 21, 2011

ledesirardent wrote:

Oh and I already grouped them. Not sure what else I'm supposed to do here.

Before run it, you should draw a rectangle on top, select the rectangle and all others and then group all.

For your second question, all you need is apply a (4*4) transform effect to you data group.

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
New Here ,
Aug 21, 2011 Aug 21, 2011

SWEET!!!! Thank you @moluapple! You're a lifesaver. I was really silly, went to position the rectangle at the back instead of the front. Your script works wonderfully well.

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
New Here ,
Aug 30, 2011 Aug 30, 2011

Hey @moluapple,

How do I apply the (4*4) transform effect to my data group?

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
Enthusiast ,
Aug 31, 2011 Aug 31, 2011

See this attachment file.

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
New Here ,
Aug 31, 2011 Aug 31, 2011

Thanks @moluapple for the attachment. I've done the 4x4 transformation and it shows up correctly.

1.JPG

But once I ran the AI_datasetMakeup.jsx script, everything looks wrong.

2.JPG

What am I doing wrong here?

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
New Here ,
Aug 31, 2011 Aug 31, 2011

Oh nvm! I figured it out already! Thank you @moluapple for your help again. 🙂 Cheers!

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
New Here ,
Sep 07, 2024 Sep 07, 2024

Can you please share the scripts AI_datasetMakeup.jsx Im unable to download it.

 

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
New Here ,
Sep 07, 2024 Sep 07, 2024

@moluapple can you please share the AI_datasetMakeup.jsx script with me as well. Thanks

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
Engaged ,
Sep 09, 2024 Sep 09, 2024

Here is @moluapple’s GitHub page:

 

https://github.com/moluapple

 

This is the last version of the AI_datasetMakeup.jsx file before it was deleted from the repository (there is no explanation as to why):

 

https://github.com/moluapple/ExtendScripts4AI-ID/blob/95bd64c73a9180de5abdda16cad6a56ef1e8d182/AI_da...

 

This may also be useful to you:

 

https://community.adobe.com/t5/illustrator-discussions/import-csv-file/m-p/14427733#M397733

 

--

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
New Here ,
Jan 10, 2025 Jan 10, 2025
LATEST

Trying to use data sets to link data but my template has two cards on a printable sheet. 2 - 5x7 sheets printed on a letter size paper. 
can I have two duplicate data sets on a single page or format to print/save as two on a single page? What would be best to do this?

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
New Here ,
Jun 04, 2024 Jun 04, 2024

I am having this same issue. Can I get a link for the script?

 

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