Created
December 9, 2019 17:21
-
-
Save thomas-lowry/98abb74c1c835b802017a522032383af to your computer and use it in GitHub Desktop.
Selects all top level frames on a page
This file contains 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
const frames = Array.from(figma.currentPage.findAll(item => item.type === 'FRAME' && item.parent.type === 'PAGE')); | |
figma.currentPage.selection = frames; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment