group node filter expression

   4084   4   1
User Avatar
Member
10 posts
Joined: Aug. 2017
Offline
hi guys having some trouble in houdini 16 following a tutorial from houdini 13 with the group node with filter expression
below is the image i attached anyone plz help me how to do this in houdini 16.

Attachments:
houdini 13 group node.jpg (612.5 KB)

vfx
User Avatar
Member
8551 posts
Joined: July 2007
Offline
in H16 you have to use Group Expression SOP
and the expression syntax will be slightly different, as it's using VEX instead of HScript as was the case in H13
so in your case:
length(v@v) > 0.625
Edited by tamte - Oct. 8, 2017 15:04:28
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
10 posts
Joined: Aug. 2017
Offline
thank you tamte,it really helped me..!!
vfx
User Avatar
Member
1 posts
Joined: April 2016
Offline
Cheers guys,

I´m completely new to Houdini and I`m also having trouble with the new organisation of Group nodes.
Like you can see in the pic attached, the tutorial filters by expression in the group node using an older Houdini version.
I think I have to use the groupExpression node, like explaned in the post above, but I don´t know how to “convert” HScript “$CG > 0” to VEX.

Looking forwards to ur answers, thanks in advance!

Attachments:
grpNodeFilterExpression.PNG (403.2 KB)

User Avatar
Member
1743 posts
Joined: March 2012
Offline
I'm not gonna lie. I had to look up what $CGmeant.

In the Group Expression SOP, you can use @Cd.g > 0.5as the expression. It's the Cdattribute, hence @Cd, (and VEX knows that Cdis normally a 3-float attribute, so it can guess that without needing the v@Cd), and the .gis an alternative to .yfor accessing the y component of a vector.
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
  • Quick Links