Skip to main content
Answer

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

  • July 15, 2024
  • 2 replies
  • 105 views

coeurl

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.

Best answer by tank666

figma.com
This topic has been closed for replies.

2 replies

tank666
  • Answer
  • July 15, 2024

coeurl
  • Author
  • July 15, 2024

Wow, I was not aware of it.

Great thanks!