Skip to content

Instantly share code, notes, and snippets.

View cphilippsen's full-sized avatar

Christian Philippsen cphilippsen

View GitHub Profile
@bomberstudios
bomberstudios / Add @3x.sketchplugin
Last active July 8, 2016 12:27
Add @3x resolution to existing Sketch documents
// This plugin will add a @3x size to all existing slices and exportable layers,
// that already have a @1x and @2x size
var p = [doc pages]
for (var i = 0; i < [p count]; i++) {
var current_page = [p objectAtIndex:i]
var exportable_layers = [current_page exportableLayers]
for (var l = 0; l < [exportable_layers count]; l++) {
var slice_or_layer = [exportable_layers objectAtIndex:l]
if ([slice_or_layer exportOptions]) {