Skip to main content
Question

setProperties not accepting (,), / characters

  • November 14, 2023
  • 1 reply
  • 238 views

Nidhin_Kuttikkattu_Rajeevan

Hi

I have a Figma plugin where I try to set variant properties for instances via plugin code.

If the property is plain string, it works fine. But if the proposed property has a bracket or slash, I mean ( , ) , /, it is saying Unable to find a variant with those property values.

Does it have a convention to avoid certain characters? I need to speak to my designer then

@tank666

This topic has been closed for comments

tank666
  • November 15, 2023

A comma (,) cannot be included in variant property values. The backslash (\) must be mirrored, that is, the variant property value must be contained \\. Brackets ((, )) and slash (/) should not cause any errors.


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