Skip to main content

Please enable remote updating of TeamLibrary variables

  • March 13, 2024
  • 1 reply
  • 133 views

Martyn_Bowis

Would be great to enable updating of a variable in a TeamLibrary from a plugin that is running from another design file that has that TeamLibrary already added please.

Currently, I can read a variable from a TeamLibrary using:
var variable = await Figma.variables.importVariableByKeyAsync(keyVariable);

However, I cannot not update that same variable using setValueForMode:
variable?.setValueForMode(modeId,value);

I get an error:
“unhandled promise rejection: Error: in setValueForMode: Cannot write to internal and read-only node. Are you trying to modify a remote style or component?”

Can you please enable updating of TeamLibrary variables remotely?

Thanks!
Martyn

Why:
When designing at scale with multiple brands, TeamLibraries enable mastering of variables that are used across multiple brands.

It would be useful to be able to update TeamLibrary variables remotely, when working with a plugin in a design file from any of those multiple brands, that have that TeamLibrary file added.

1 reply

y_toku
Figmate
  • Community Support
  • 2404 replies
  • March 15, 2024

Thanks for the feedback! We will share this internally. We really appreciate your insight!


Reply


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