Skip to main content
Participant
March 4, 2023
Question

Create a script to convert existing t shirt designs to front and back mug prints. Can anyone please?

  • March 4, 2023
  • 1 reply
  • 457 views

I have hundreds of t shirt design files with (6 artboards on each) that need converting to fit on artboards created for printing mugs (front and back print). I know what I need the script to do...but I have no idea how to actually acheive that using illustrator via actions or scripts...I 've tried everything I can and am out of my depth now 😞

 

Can anyone with the know how help me out with a script to do this please?... It would save my entire weekend (and my sanity lol).

 

(I promise to learn more soon!)

 

Many thanks in advance,

 

Darren.

 

This is what I need it to do (please 🙂 )...

 

(All file names/paths given are absolute)

 

Script 1 > Copy, transform  (to a specific width in mm if possible) and place into another document

 

  • Turn off visibility of layer "WHITE BGS***********" (in open document)
  • Select artboard 1
  • select all on artboard
  • Group
  • scale to specific width (that I can edit later in the .jsx file)
  • copy to clipboard
  • open document "E:\Users\Steve\Desktop\Canvasking\WorkSpaces\MUG 6 UPRIGHT"
  • select artboard 1
  • select sublayer "To sort" from Folder "1”.
  • paste
  • Move group so the centre of it is in a specific location on artboard.
  • Select previous document.

 

(repeat above for artboard 2,3,4,5,6 - switching between 2 files as needed)

 

  • select all 6 sublayers named "To sort" from folders 1-6 in "E:\Users\Steve\Desktop\Canvasking\WorkSpaces\MUG 6 UPRIGHT"
  • Duplicate all
  • Move duplicates to be centred at a specific horizontal position (that I can edit later in the .jsx)

(all 6 artboards in the destination file  "E:\Users\Steve\Desktop\Canvasking\WorkSpaces\MUG 6 UPRIGHT" are positioned one above  the other vertically in one column) 

  • Close document 1 without save
  • Save MUG 6 UPRIGHT in location L:\DOG MUG CONVERTED\ + name of document 1 (if possible)
  • Export all artboards as  with document name + artboard name (if possible)
  • Close all without save
This topic has been closed for replies.

1 reply

Met1
Legend
March 10, 2023

I can't believe no-one has written this script for you already - Try ChatGPT...

daz22yrsAuthor
Participant
March 13, 2023

I knew it was a big ask.