Skip to main content
Solved

How to detect when user has selected a layer when plugin is running


Hi, i want my plugin to detect when I select a layer and enable a button in my menu like so:


What sort of event should I be listening for, and where should my handler be implemented ie inside my code.js or the script tag inside my ui.html?

Best answer by tank666

In code.js:

figma.com
View original

3 replies

tank666
  • 4862 replies
  • Answer
  • June 23, 2023

In code.js:

figma.com

  • Author
  • 30 replies
  • June 23, 2023

@tank666 thanks, it worked!


Jaydip_Upadhyay

Thankyou Its Worked


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings