Illustrator Script to Release All Clipping Masks & Groupings, Etc


Question

Is there a script available for Illustrator that would allow for all clipping masks, groupings and compound paths to be released? Essentially a script that could breakdown a file to it's original parts.

1
6
12/17/2018 2:25:00 AM

You don't need a script to release all clipping mask in one step, just do:

  • Select->Object->Clipping Mask
  • Edit->Clear

But it can also be done via script:

app.executeMenuCommand("Clipping Masks menu item"); 
app.executeMenuCommand("clear");

The same for ungroupping all objects and release all compound paths:

app.executeMenuCommand("selectall"); 
app.executeMenuCommand("ungroup");
app.executeMenuCommand("noCompoundPath");
8
7/17/2017 12:19:00 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
^