Figma Community Forum
How to detect when user has selected a layer when plugin is running
Plugin and Widget API
Questions
tank666
June 23, 2023, 7:17am
2
In code.js:
Then use postMessage and get it in ui.html
Please see the developer documentation:
2 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Listening for changes using figma.on()
Questions
figma
2
834
April 17, 2023
Instantly access figma.currentPage.selection nodes
Questions
3
2755
February 20, 2022
Selection event API?
Plugin and Widget API
4
1697
May 12, 2022
onChange evnets in Layer panel and layer content (Text content change, width, height etc)
Questions
2
1006
September 2, 2021
SelectionChange not firing
Questions
1
337
October 13, 2023