Ask DN: Sketch Mirror/Preview for Android?

9 years ago from J A, Design Lead at Gametime

  • Marc EdwardsMarc Edwards, 9 years ago (edited 9 years ago )

    This Sketch plugin provides a preview command (?P) that will open a specially named slice in Skala Preview. The plugin works by exporting the first slice named Preview to Sketch's cache directory and opening that file in Skala Preview.

    https://github.com/marcisme/sketch-preview

    And... that means you can use Skala Preview and Skala View for Android.

    http://bjango.com/mac/skalapreview/

    I'd pay for that product :)

    You don’t have to, because Skala Preview is free. :D

    6 points
    • J AJ A, 9 years ago

      Thanks for the link. Unfortunately this doesn't work...(think if might only work on sketch 2.2.4) know of anything else?

      0 points
      • Marc EdwardsMarc Edwards, 9 years ago

        Maybe contact the author to see if he can help?

        0 points
      • David KlawitterDavid Klawitter, 9 years ago (edited 9 years ago )

        Without knowing how your file is set up I can't be for sure but I use a variety of artboards and was able to get this to work by iterating through artboards, not slices (line 40).

        This is my first foray into Sketch scripting so I need to dig into this a bit more. Ideally, for me, it would preview the current artboard but I'm not sure that's available in the API.

        Fun stuff - glad I came across this.

        EDIT: It was actually pretty trivial to get my current art board previewed. I'm going to fork this project and get to work.

        FORKED: This version will simply preview the currently selected artboard and was tested against the latest Sketch and Skala apps.

        https://github.com/davidklaw/sketch-preview

        0 points