Jump to content

How to create Metaball influence as Point attribute?


hopbin9

Recommended Posts

Hi,

I have a Grid SOP and in the center I've placed a Metaball SOP.

For each point I'd like to have an attribute that represents the field influence of the metaball on the grid. The value range doesn't really matter at this point. It can be clamped 0-1, or start at 0 for the center of the metaball.

I've been going over the manual extensively and can't figure it out. The closest I've gotten is to use the Bulge SOP and then create an attribute using VEX that stores the distance of points between the Bulge SOP and before it. I tried using the Magnet SOP and have it update velocity, color or normals, but it keeps the unit length of those vectors the same. So normals/velocity are rotated but their magnitude remains the same.

It just seems to me this should be a simple thing to do in Houdini.

Link to comment
Share on other sites

I'd say just use the Metaball Weight VOP inside a VOP SOP.

oh thanks for sharing that.

op:`opinputpath("..", 1)`

I haven't seen that done before inside VEX. That explains how to use those VEX nodes that reference files. That always had me confused.

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