Skip to main content
Question

setProperties not accepting (,), / characters

  • November 14, 2023
  • 1 reply
  • 255 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 replies.

1 reply

tank666
  • 4873 replies
  • 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.