Hung Ashung

GUI Designer Joined over 8 years ago

  • 0 stories
  • 8 comments
  • 0 upvotes
  • Posted to How to unlink a sketch symbol library?, Jan 15, 2018

    The follow script will unlink all imported symbols to local symbol. Backup your file, then running the script.

    var documentData = context.document.documentData();

    for (var i = 0; i < documentData.foreignSymbols().count(); i++) {

    var foreignSymbol = documentData.foreignSymbols().objectAtIndex(i);

    foreignSymbol.convertToLocalSymbolMaster();

    }

    To unlink imported symbols from a library, you can change the script like this.

    var documentData = context.document.documentData();

    for (var i = 0; i < documentData.foreignSymbols().count(); i++) {

    var foreignSymbol = documentData.foreignSymbols().objectAtIndex(i);

    // if (foreignSymbol..libraryID() == "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX") {

    if (foreignSymbol.sourceLibraryName() == "Library Name") {

    foreignSymbol.convertToLocalSymbolMaster();

    }

    }

    1 point
  • Posted to Gravit Designer 3.1 just landed: Sketch import, Gravit Cloud, design templates, and more, Jun 30, 2017

    Redesign the icon and UI.

    0 points
  • Posted to Sketch 45, in reply to Jamie Leung , Jun 30, 2017
    1 point
  • Posted to Sketch 45, in reply to Jamie Leung , Jun 30, 2017

    Sketch - Plugins - Run Script..., replace with these code, then save.

    var artboards = context.document.currentPage().artboards(); for (var i = 0; i < artboards.count(); i++) { var artboard = artboards.objectAtIndex(i); if(artboard.layout()) { artboard.layout().setIsEnabled(false); } }
    1 point
  • Posted to Sketch 45, in reply to Adam Wathan , Jun 30, 2017

    Hi, I made a HSL Color Picker plugin for Sketch.

    0 points
  • Posted to Awesome Design Systems, Jun 17, 2017

    I made a Sketch plugin design systems.

    1 point
  • Posted to Which sketch plugins do you use currently?, in reply to Jonard Tirol , Apr 27, 2017

    The link is old, check this https://github.com/Ashung/Automate-Sketch for full features.

    0 points
  • Posted to Sketch Wishes, in reply to Andrew Juarez , Feb 22, 2017

    Use system color panel, "View" - "Show Colors", in the "Color Palettes" tab, click the gear icon to create new palettes.

    The palettes file will saved in "~/Library/Colors/".

    0 points
Load more comments