Skip to content

Instantly share code, notes, and snippets.

@janily
Created May 8, 2020 01:46
Show Gist options
  • Select an option

  • Save janily/ce632449f686e8b62344cefb1bdaa8c9 to your computer and use it in GitHub Desktop.

Select an option

Save janily/ce632449f686e8b62344cefb1bdaa8c9 to your computer and use it in GitHub Desktop.
sketch symbol value
let sketch = require('sketch')
var document = sketch.getSelectedDocument()
var selectedLayers = document.selectedLayers.layers
let text = selectedLayers[0]
console.log(text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment