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?
Page 1 / 1
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.selectiono0].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.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.