Inclusive group expressions

   1015   2   0
User Avatar
Member
201 posts
Joined: 7月 2015
Offline
Hey guys,

I'm trying to do an operation on geometry that has two true values:
@id==1 @age<0.5

I don't have access to this operation via VEX, only as regular node so I need to specify this on a group parameter. It works if I do single expressions, but it doesn't seem to work with both. I pretty much tried everything on here: https://www.sidefx.com/docs/houdini/model/groups.html#manual [www.sidefx.com] But I couldn't get it to work.

Thanks!
Manuel Köster - Senior Technical Artist @Remedy Entertainment

https://www.remedygames.com/ [www.remedygames.com]
http://shadesoforange.de/ [shadesoforange.de]
https://twitter.com/ShadesOfOrange_ [twitter.com]
User Avatar
Member
2038 posts
Joined: 9月 2015
Offline
I don't understand why you say this cannot be done with vex - because it can.

In a wrangle:

if( (i@id == 1) && (f@age < 0.5) ) @group_NewGroup = 1;

You could also do this in a group expression node too:
(i@id==1) && (f@age < 0.5)
User Avatar
Member
8538 posts
Joined: 7月 2007
Online
in group field you'd do it like this
@id==1 ^!@age<0.5
Edited by tamte - 2020年2月26日 15:08:47
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links