Jump to content

Delete points based on Ray Cast values ?


CinnamonMetal

Recommended Posts

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 ?

Link to comment
Share on other sites

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 by CinnamonMetal
Link to comment
Share on other sites

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

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...