Search - User list
Full Version: Next Steps 8 - numhit attribute problem
Root » Houdini Learning Materials » Next Steps 8 - numhit attribute problem
j00ey
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
animatrix_
I don't think there is a numhit attribute. There is hitnum, and it's an integer, which is what you should be using.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB