Skip to content

Instantly share code, notes, and snippets.

@sonburn
Created April 24, 2019 13:30
Show Gist options
  • Save sonburn/44a91ed9583b6b03de22e34ca22c4e18 to your computer and use it in GitHub Desktop.
Save sonburn/44a91ed9583b6b03de22e34ca22c4e18 to your computer and use it in GitHub Desktop.
const sketch = require('sketch');
const document = sketch.getSelectedDocument();
const selection = document.selectedLayers;
selection.forEach(layer => layer.sketchObject.fixGeometryWithOptions(0));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment