Skip to main content
Question

Figma Plugin API: how to detect whether a node has been masked?


What I mean is whether a node has been masked, not whether the node itself is a mask or not.

This topic has been closed for replies.

2 replies

Gleb
  • Power Member
  • 4708 replies
  • May 4, 2024

The criteria are:

  1. The node must be above the mask node in the layer hierarchy.
  2. The node must not be in a frame with Clip Content or masked with another mask but only in the case where the frame or mask are siblings of the mask you are checking (have the same parent).

  • Author
  • 1 reply
  • May 5, 2024

Thank for your answer. It’s really helpful!


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