Jump to content
mstarktv

Delete objects converted from points to shapes

Recommended Posts

Still new to Houdini, but I ran into something interesting(for me) when I was trying to just take the idea of deleting particles based on their Y value. This seemed to work fine until I turned my points into solids.

 

When I was using points, in my dop network I used a geometry wrangle node with the following condition to kill particles below a certain Y value: if(@P.y<-.25) removepoint(0, @ptnum);

 

Now, when I try this with baked geometry that has been converted to solids and using a finite element solver, I can't seem to get the same results. This is where I'm lost. I'm assuming, it's because the solids are now no longer points. But I don't know how to access them for deletion.

 

I attached a file with a simple setup if you're curious to take a look. I'm just taking the idea of deleting objects based on Y height and applying it across the board with all solver/object types. 

 

Any help is much appreciated! :D 

 

Best,

 

Stark

 

 

 

pointScatter.hipnc

Share this post


Link to post
Share on other sites

 

Tetrahedra are primitives. This should work:

if (@P.y < -0.25)
{
    removeprim(0, @primnum, true);
}

Thanks for this. Is there a way that it deletes the entire mesh at once? Even if that involves deleting the particle that is created into the mesh? I see that it deletes each face, but I'm trying to delete the entire mesh at once. On and off, instead of per primitive?

Share this post


Link to post
Share on other sites

I take that back. I resolved the problem but changing both Group Type a d Run over to Primitives and I got the desired results. Again, thank you :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×