Skip to main content
Solved

Is it possible to remove a childNode of InstanceNode by calling remove

  • June 21, 2021
  • 1 reply
  • 1065 views

111749

Is it possible to remove a childNode of an instanceNode by calling remove method on the node. E.g.

  • component node(with id 1:1) which has a child node (with id 1:2)
  • instance node (with id 1:3) which has a child node (with id I1:3;1:2)

Whether calling figma.getNodeById('1:2').remove() or figma.getNodeById('I1:3;1:2').remove() both resulting in Uncaught Error: in remove: Removing this node is not allowed. However, toggling visibility works fine.

Best answer by peterstnsz

AFAIK, it’s not possible to remove a layer (child) from an instance even doing it manually (selecting the layer and pressing del or Backspace hides it)

View original

1 reply

peterstnsz
  • 32 replies
  • Answer
  • June 21, 2021

AFAIK, it’s not possible to remove a layer (child) from an instance even doing it manually (selecting the layer and pressing del or Backspace hides it)


Reply


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