skipInvisibleInstanceChildren Not working
thanhnd45 opened this issue · comments
thanhnd45 commented
I am developing a plugin for myself, I want to find all TextNodes and ignore nodes that are hidden. Do I use figma.skipInvisibleInstanceChildren = true;
but the result, I get in the function fillAll() still contains the hidden node (its parent is hidden)
My code:
figma.skipInvisibleInstanceChildren = true; figma.showUI(__html__);
function getAllText(){ let listNodeSelected = figma.currentPage.selection let listTextNode = [] for (const node of listNodeSelected){ let textNodes = node.findAll((node) => node.type === "TEXT"); listTextNode = listTextNode.concat(textNodes) } }
How to implement skipInvisibleInstanceChildren?