Skip to main content
Solved

Variant Issue with Nested exposedInstances and Switching Off Instances

  • March 26, 2023
  • 1 reply
  • 324 views


all nested props are on 👆


one of the nested props is off 👆

I have noticed that when a variant contains nested exposedInstances instances, and you switch off one of them, exposedInstances returns an error. However, I believe that this shouldn’t be the case, as Figma allows this action. Instead, it should simply remove the switched-off instance from the array or add a specific property, such as unchecked. Am I missing something here?

Best answer by PavelLaptev

I found what cause that. I had a line to skip invisible layers:

figma.skipInvisibleInstanceChildren = true;

Just remove it.

This topic has been closed for replies.

1 reply

  • Author
  • 6 replies
  • Answer
  • March 26, 2023

I found what cause that. I had a line to skip invisible layers:

figma.skipInvisibleInstanceChildren = true;

Just remove it.