I have a node group that performs internal actions and uses the faces of the mesh that is plugged in.
I would like to expose a parameter that allows a Face Selection boolean as an input from the outside, but none of the nodes I use have a selection socket I could use.
My idea was to have a first path to output the full mesh. And an alternative path that deletes the faces that have been selected with an equation from outside the group. The problem is that I’d like to have the Faces Selection as an option: whether I plug something or not.
But what boolean can I put in the Switch socket so it makes the switch True or False according to the following:
The user hasn’t plugged anything = outputs False (no face is deleted)
The user has plugged a boolean = outputs True (the faces are deleted according the user’s equation, say by index for example)
Alternatively, is there a better way to allow that Faces Selection without necessarily having to perform a delete on the mesh?
Indeed the Separate Geometry was a much better choice. When nothing is plugged it works as expected.
I just have one last problem. The faces selection doesn’t seem to work as intended with my node setup.
When changing the index, it looks like it’s not acting on the faces domain. I don’t understand what I’m doing wrong.
Would you mind having a look at it? (I framed the node in red inside the group)
I followed a tutorial and made this node group that spawns a point for each face corner and I can control it’s offset along the median of the face corner’s angle.
If you remove the plug from the Faces Selections socket, you will see what it does.
I just want to be able to add the option to select the faces on which this is being performed. And for that I need it to be a boolean.
Edit: By the way there is only 3 faces on the incoming model. No need to go further than 0, 1 or 2 for the index integer.
No, I need the exposed socket to be a boolean, not an integer.
But upon further investigation, I have the impression that the problem doesn’t come from this node. Because when I plug it directly in the output, it works as intended. The problem seems to come from the generated points, they do not seem to stem from the faces that are plugged in the domain size node.
That’s weird. I’ll keep investigating…