Skip to main content
May 4, 2024
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
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).
PanComateAuthor
May 5, 2024

Thank for your answer. It’s really helpful!