Skip to content

Instantly share code, notes, and snippets.

@gavinmcfarland
Last active March 19, 2021 10:11
Show Gist options
  • Save gavinmcfarland/6e6bfa94ac6d8924638b0d6baa8d18ed to your computer and use it in GitHub Desktop.
Save gavinmcfarland/6e6bfa94ac6d8924638b0d6baa8d18ed to your computer and use it in GitHub Desktop.
Get list of layer names in Figma
function getLayerNames() {
var names: any = []
var layers = figma.currentPage.selection
layers.map((layer) => {
names.push(layer.name)
})
return names
}
print(getLayerNames())
@equinusocio
Copy link

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment