Skip to main content
coeurl
July 15, 2024
Solved

Is there a Plugin API method for setting scopes of a variable?

  • July 15, 2024
  • 2 replies
  • 255 views

Background

I am developing a Local Variables Exporter/Importer Plugin.

So, I am having trouble trying to set the scope of a variable in an import process.

Questions

  • Exporter
    • for CodeSyntax: variable.codeSyntax
    • for Scopes: variable.scopes
  • Importer
    • for CodeSyntax: variable.setVariableCodeSyntax()
    • for Scopes: ???

Is there a Plugin API method for setting scopes of a variable?

I could not find any members that looked like them on this page: Variable | Plugin API

I would appreciate your advice. Thanks.

This topic has been closed for replies.
Best answer by tank666
figma.com

2 replies

tank666
tank666Answer
July 15, 2024
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
coeurl
coeurlAuthor
July 15, 2024

Wow, I was not aware of it.

Great thanks!