Skip to content

Instantly share code, notes, and snippets.

@rogie
Last active June 21, 2022 13:49
Show Gist options
  • Select an option

  • Save rogie/8e3a6890be33d28b1a616904681a72dd to your computer and use it in GitHub Desktop.

Select an option

Save rogie/8e3a6890be33d28b1a616904681a72dd to your computer and use it in GitHub Desktop.
Selects all nodes with a specific name within a selection
let nodesToSelect = []
figma.currentPage.selection.forEach(node => {
// Change "Icon Right" to the node name you want to select
node.findAll(node => node.name == "Icon Right").forEach(node => nodesToSelect.push(node))
})
figma.currentPage.selection = nodesToSelect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment