Hey Folkz, I’m looking for an API to update variable!
In the docs, I could see API to createVariable
, createVariableCollection
and several APIs to getting a variable, but how could I update a variable of a particular collection and mode?
I’ve tried the following code, but no luck with it
let variable = figma.variables.getVariableById("VariableID:104:28");
variable.valuesByMode['104:0'] = {r: 0, g: 0, b:0};
Thanks in advance!