Skip to main content
Question

How i can get access to global object figma in ui.tsx?

  • February 2, 2023
  • 1 reply
  • 998 views

Iuri_Fazli

I need access to figma global object in ui.tsx file. How i can get it? In code.ts it’s work, but in ui.tsx no 😦

This topic has been closed for comments

1 reply

tank666
  • 4863 replies
  • February 2, 2023

It’s impossible. If you want to access the global object from the UI, then you need to send a message from the UI to the plugin code, and then in the plugin code access the figma global object.

Please see the developer documentation for an example: Creating a User Interface | Plugin API


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