Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skipInvisibleInstanceChildren Not working #122

Open
thanhnd45 opened this issue Feb 3, 2023 · 0 comments
Open

skipInvisibleInstanceChildren Not working #122

thanhnd45 opened this issue Feb 3, 2023 · 0 comments

Comments

@thanhnd45
Copy link

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) } }

image

image

How to implement skipInvisibleInstanceChildren?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant