Invert a group in Houdini 19.5 ?

   359   1   1
User Avatar
Member
1 posts
Joined: April 2020
Offline
Hi! I'm trying to invert a group I made based on normals, I'm trying to find an expression that would allow me to do that either in VEX or in HScript but for the moment I haven't found anything...

is there a node or expression to do this?

Cheers
Lv

Attachments:
Screenshot 2024-03-21 101306.png (639.9 KB)

User Avatar
Member
143 posts
Joined: May 2017
Offline
Hi,
there is a group invert sop.

Or use this snippet in wrangle:
if (@group_my_group)
    @group_my_group = 0;
else
    @group_my_group = 1;
or
@group_my_group = 1 - @group_my_group;

"@group_" is predefined to indicate that it is a group attribute. Followed by the actual group name.

EDIT:
Group Invert Sop is new to H20. So you can use then the group expression sop:

Or an "additional" group sop in which you can negate the existing group:
Edited by viklc - March 27, 2024 16:18:37

Attachments:
group_expression.png (23.7 KB)
invert_gorup.png (38.5 KB)

  • Quick Links