Skip to main content
Question

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

  • May 4, 2024
  • 2 replies
  • 134 views

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
  • 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
  • May 5, 2024

Thank for your answer. It’s really helpful!