Skip to main content
Nidhin_Kuttikkattu_Rajeevan
Active Member
November 14, 2023
Question

setProperties not accepting (,), / characters

  • November 14, 2023
  • 1 reply
  • 289 views

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
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.

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