• Benjamin Berger, over 5 years ago

    This looks super interesting!

    Just out of curiosity, what is making this plugin possible today? We've seen Principle released 2 years ago with a similar concept, but as a standalone app. The Lightning plugin (bought by Invision and embedded into Craft) is close to what you got, but without the timeline – just connecting screens together.

    I always thought that going this far with a plugin was just impossible. Has anything changed to enable your work?

    0 points
    • Suresh SelvarajSuresh Selvaraj, over 5 years ago

      I hadn't explored plugins deeply before this, so I can't really say what has changed to enable this. So instead, let me tell you what I'm using to do this:

      1. Actions API: Sketch lets you hook into user events, so when a layer selection changes, my code knows about it
      2. Saving custom data: I can save my plugin's data as JSON directly into the Sketch document with the new file format
      3. Loading frameworks: I don't know since when this has been available, but this is the most important feature for Diya. This way, I can develop my plugin in Xcode with proper debugging tools rather than using JS/CocoaScript
      4 points