POP group based on VEX expression

   4774   3   1
User Avatar
Member
36 posts
Joined: Jan. 2014
Offline
Hi,

I'm trying to create a popgroup based on if the my particles are affected by the popfan.

I'm very new to VEX and Houdini so I don't know which attributes I can use in the VEX expression.

Any help would be greatly appreciated!

Attachments:
rain.hipnc (296.9 KB)

User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
By default popdop forces doesn't add any data to filter affected particles as other dop forces get added in Forces data which can be used to do stuff like grouping.

You need to modify “POP Fan Cone” dop otl.
User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
Here is your modified file:

Attachments:
rain_192.hipnc (373.3 KB)

User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
You are grouping based on hitnum:
if (i@hitnum>0)
{
ingroup = 1;
}
This can be also written as:
ingroup = i@hitnum>0;

It's just short form.
  • Quick Links