Skip to content

Instantly share code, notes, and snippets.

@thomas-lowry
Created December 9, 2019 17:21
Show Gist options
  • Save thomas-lowry/98abb74c1c835b802017a522032383af to your computer and use it in GitHub Desktop.
Save thomas-lowry/98abb74c1c835b802017a522032383af to your computer and use it in GitHub Desktop.
Selects all top level frames on a page
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