Skip to main content
Solved

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

  • June 23, 2023
  • 3 replies
  • 913 views

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
This topic has been closed for replies.

3 replies

tank666
  • Answer
  • June 23, 2023

In code.js:

figma.com

  • Author
  • June 23, 2023

@tank666 thanks, it worked!


Jaydip_Upadhyay

Thankyou Its Worked