Jump to content

point vop gradient


Recommended Posts

Helou houdini's folks!

Just a superquick question. I am trying to define @Cd attribute, by distance from certain group of points. I am using pig head volume filled with points, and unfortunatelly I dont know, how to create black and white gradient, based on distance of selected group of inner points and outer points (explained in the attached picture). Can you guys help me out, please?

(And additional question: is it possible to define it all at vop without selecting group of inner points previously?)

 

I will be very thankful for any advces. :)

 

 

Cd_distance.hipnc

distance.jpg

Edited by pan.mentolka
Link to comment
Share on other sites

Hi mate :)

One approach would be to isolate the inside group and then use them in a nearpoint function to get the distance between them and outer points, so a bit similar to your original thought. If you want to avoid groups and just get gradient by distance to center of volume, you can extract the centroid of your volume as a point and use that in the same nearpoint setup. I've adjusted your hipfile here to show both approaches, hope this helps! 

 

 Cd_distance.hipnc

image.png.585d452d04f53b6e67bb40bd7b0ebd5e.png

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