CinnamonMetal Posted April 24, 2020 Share Posted April 24, 2020 How can I delete points where there is not a float point attribute. For example, I created a float point attribute on the geometry and where that attribute doesn't exist on the geometry the points \ particles are deleted; or better yet, using the raysop, ray cast particles only where a float point attribute exists on the geometry when the particles go outside of this attribute on the geometry, the particles are deleted ? Quote Link to comment Share on other sites More sharing options...
Masoud Posted April 25, 2020 Share Posted April 25, 2020 (edited) Hi "Christopher", Do you mean that you want to delete a point if it doesn't contain an attribute? Something like this: https://www.sidefx.com/docs/houdini/vex/attrib_suite#detail or this? : https://www.sidefx.com/docs/houdini/vex/functions/haspointattrib.html Edited April 25, 2020 by Masoud Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted April 25, 2020 Author Share Posted April 25, 2020 (edited) Another way to put it is this; How can I create an attribute for the Ray SOP which will project those points which the attribute has applied to the target geometry based on an attribute on the geometry ? haspointattrib() may be what I need for the geometry. Edited April 25, 2020 by CinnamonMetal Quote Link to comment Share on other sites More sharing options...
anim Posted April 25, 2020 Share Posted April 25, 2020 it's impossibe to have attribute only on part of the geometry (unless it's nested inside of packed prim), it's either on all elements of the geometry or none do you mean you want to delete points which hit parts of geometry where the attribute value is 0.0? In that case just import attributes from hits and delete or do something based on that value ray_get_hit_attrib.hip Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted April 25, 2020 Author Share Posted April 25, 2020 (edited) I'm importing the hit attribute and that seems to do the Job. Edited April 26, 2020 by CinnamonMetal Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted April 26, 2020 Author Share Posted April 26, 2020 (edited) I figured it out Edited April 27, 2020 by CinnamonMetal Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.