Last active
June 21, 2022 13:49
-
-
Save rogie/8e3a6890be33d28b1a616904681a72dd to your computer and use it in GitHub Desktop.
Selects all nodes with a specific name within a selection
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
| 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