Next Steps 8 - numhit attribute problem

   3144   1   0
User Avatar
Member
55 posts
Joined: May 2013
Offline
Hi
I'm doing the next steps procedural animation 8 tutorial and as with all the others, learning a lot doing it.
However there's something I can't figure out. In the last exercise, Ari puts down a POP wrangle and adds this code :

float impulserate = 10;

if (@stopped == 0 || @numhit == 3) {
if (@hitimpulse != 0 && @hitimpulse <= impulserate) {
@stopped = 1;
}
}

I'm looking at my point attributes in my source_particles and numhit is appearing there but it never gets incremented. I tried setting the test to @numhit == 3000 and it still works as it's testing is the particle still moving OR is numhit equal to 3.

Can anyone tell me where I'm going wrong? NUMHIT would seem to be a very useful bit of information but I can't seem to get it working…
Thanks in advance
User Avatar
Member
4512 posts
Joined: Feb. 2012
Offline
I don't think there is a numhit attribute. There is hitnum, and it's an integer, which is what you should be using.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
  • Quick Links