Skip to main content
Solved

API to set description of Variable


Jason_Burns

Looking for a way to set the description of a Variable without recreating the variable (which would break existing links to the variable, or require remapping all links to the new variable).

Best answer by tank666

The description property of the Variable object has a setter, so just change the value of this property.

figma.com
View original
This topic has been closed for replies.

2 replies

tank666
  • 4873 replies
  • Answer
  • June 12, 2024

The description property of the Variable object has a setter, so just change the value of this property.

figma.com

Jason_Burns

Yea, my bad… appreciate the timely response. Was trying to apply an object as the description value, forgetting I need to set the value as a string.


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