Mathieu Dutour

Results 272 comments of Mathieu Dutour

or just `delete layer.flow` I think, which read really nicely

I don't really understand the steps to repro. If I run this: ```js const sketch = require('sketch') const document = new sketch.Document() console.log(document.id) document.save('~/Desktop/test.sketch', {saveMode: sketch.Document.SaveMode.Save}, () => { console.log(document.id)...

For 1. `new sketch.Document()` does create a new document and as said before, it’s ID is temporary before being saved. For 2., I’ll check about the callback but it’s a...

Then I can't reproduce: - open an existing document, make sure its saved - run the script - the 2 same IDs are logged

what's your sketch version?

I published a new version which should fix this weird error message but I haven't been able to reproduce

I'm wondering if the nodejs version of react-sketchapp manage to generate those properly (it parses the svg path and build the points manually without relying on Sketch's parsing). If so...

Sorry for the delay. Yeah, happy with how it's going 👍

The error is pretty clear: you can't execute the plugin while on the Symbols page.

you can do something like: ```js function recurseThroughLayers(root, fn) { fn(root) if (root.layers) { root.layers.forEach(l => recurseThroughLayers(l, fn)) } } const sharedStyleUsed = [] recurseThroughLayers(layer, l => { if (l.style...