Skip to main content

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.

figma.com

Wow, I was not aware of it.

Great thanks!