Last active
March 19, 2021 10:11
-
-
Save gavinmcfarland/6e6bfa94ac6d8924638b0d6baa8d18ed to your computer and use it in GitHub Desktop.
Get list of layer names in Figma
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getLayerNames() { | |
var names: any = [] | |
var layers = figma.currentPage.selection | |
layers.map((layer) => { | |
names.push(layer.name) | |
}) | |
return names | |
} | |
print(getLayerNames()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🚀