Skip to content

Instantly share code, notes, and snippets.

View acswift's full-sized avatar
💭
What's your project?

Andrew Swift acswift

💭
What's your project?
  • Svija
  • Toulouse, France
  • 17:55 (UTC +01:00)
View GitHub Profile
@MarshySwamp
MarshySwamp / Expand or Collapse Layer Sets.jsx
Last active January 13, 2025 13:54
Expand or Collapse Layer Sets
// Expand ALL layer groups/sets
openAllLayerSets(app.activeDocument);
function openAllLayerSets(parent) {
// https://forums.adobe.com/message/5764024#5764024
for (var setIndex = 0; setIndex < parent.layerSets.length; setIndex++) {
app.activeDocument.activeLayer = parent.layerSets[setIndex].layers[0];
openAllLayerSets(parent.layerSets[setIndex]);
}
}
@TomByrne
TomByrne / MultiExporter.jsx
Last active November 24, 2025 05:37
An Illustrator script for exporting layers and/or artboards into separate files (PNG8 / PNG24 / EPS / PDF / SVG / JPG / FXG).See http://www.tbyrne.org/export-illustrator-layers-to-svg-files
// MultiExporter.jsx
// Version 0.1
// Version 0.2 Adds PNG and EPS exports
// Version 0.3 Adds support for exporting at different resolutions
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize
// Version 0.5 Fixed cropping issues
// Version 0.6 Added inner padding mode to prevent circular bounds clipping
//
// Copyright 2013 Tom Byrne
//