Solved
tank666Solution
February 21, 2024
Let’s start in order:
figma.comThe argument to this method must be collection.id, not collection.key.
So, you need to follow the following logic:
- Get a
LibraryVariableCollection; - Get a
LibraryVariable; - Import this
LibraryVariablebykey; - Get a
variableCollectionIdin importedVariable; - Get a
VariableCollectionbyid.
After completing the fifth step, you will have a VariableCollection object, which you must use in the setExplicitVariableModeForCollection method.
Collection modes will be available in the following path: VariableCollection.modes.
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
