Skip to main content
coeurl
Jul 15, 2024 1:46 PM UTC
Solved

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

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.
tank666
tank666Solution
Jul 15, 2024 5:07 PM UTC
figma.com
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

2 replies

tank666
tank666Solution
Jul 15, 2024 5:07 PM UTC
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
Jul 15, 2024 7:08 PM UTC

Wow, I was not aware of it.

Great thanks!