Jump to content

Delete scatter points based on time


Recommended Posts

Hey guys,

Quick question about deleting scatter points.  I have a character walking over a grid and transferring red to scatter points on the grid.  So his foot steps are in red.  His foot stays down on the grid for about 2 seconds 

before he continues his walk cycle.  The red particles are piped into a popnet which is emitting particles.  Problem is those red points keep emitting particles and not just a burst.   I'm trying to either delete those red points almost instantly but long enough for the popnet to emit once, or emit only once from the red points.   He does this throughout the animation,  so I don't think I can use $FF.  Kinda new to Houdini,  so maybe I'm not thinking about it correctly.

 

Thanks    

Link to comment
Share on other sites

Hey, I'm sure there's a MUCH simpler way of doing this, but I'm tired and this way kinda works, so hopefully this is of some use to you!

deleteScatterPoints.hipnc

I'm essentially just using a solver node to test each point to see if it's red on both the current and the previous frame, and if so, create and set a "kill" attribute to be 1 (the rest will be 0 because that's the default for new attributes). Then after that, I just delete any points that have a kill attribute of 1 (and also any points that aren't red).

Then in the pop network, I just set the source to "all points"

Hope this helps!

(although like I say, there's probably a much simpler way!)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...