Figma Support Forum

isMask property problem

Hey, I need to tell if a layer is a mask or not. I was trying isMask property, but it always returns false. Could anyone help?

It works fine for me, I just tried. I can set it and get it correctly. Can you show an example where it’s not working for you?

figma.currentPage.selection[0].isMask returns true when the selected layer is a mask.

I just made it work too. There was a node inside my project which was called “mask” but technically wasn’t a mask. Sorry for bothering you, I guess the topic can be deleted.

1 Like