hopbin9 Posted February 2, 2012 Share Posted February 2, 2012 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. Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted February 2, 2012 Author Share Posted February 2, 2012 I ended up using a Bulge SOP and a Point SOP. Connected the source geometry to input 1 and Bulge to input 2, then just set an attribute to length($TX-$TX2,$TY-$TY2,$TZ-$TZ2) I'll attach an example. Is this the best way? setup.hip Quote Link to comment Share on other sites More sharing options...
gaurav Posted February 2, 2012 Share Posted February 2, 2012 Its can easily be done with magnet. Turn off the affect position and enjoy. Cheers, metaMagnet.hipnc Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted February 2, 2012 Author Share Posted February 2, 2012 Its can easily be done with magnet. Turn off the affect position and enjoy. Cheers, Thanks, I don't know why I didn't see that. Quote Link to comment Share on other sites More sharing options...
graham Posted February 2, 2012 Share Posted February 2, 2012 I'd say just use the Metaball Weight VOP inside a VOP SOP. metaball_weight.hip Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted February 2, 2012 Author Share Posted February 2, 2012 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. 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.