control deform with mask

   4822   6   3
User Avatar
Member
530 posts
Joined: March 2014
Offline
I've been looking for a solution for this for a while now but no luck so far.

Is there a way to control the intensity of a mountain deform by something like a ramp or “weight map” ? Coming from Softimage I suspected this would be a piece of cake, but it smells like I need to learn VEX code to do something as basic as this.

I created a “distance along geometry” mask that looks like its what I need, but I can't find a way to use in a point VOP or mountain deform.


Thanks,

R.
Edited by toonafish - July 15, 2020 17:53:43
User Avatar
Member
402 posts
Joined: April 2017
Offline
Unfortunately Houdini doesn't have out of the box per-point-weighted blend shapes, but they're not too hard to throw together yourself.

Assuming you have a point attribute called @weight or @mask or whatever and a base pose in input0 and the deformed pose in input1 of a Point Wrangle:

vector P2 = point(1, "P", @ptnum);
@P = lerp(@P, P2, @weight);
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
User Avatar
Member
734 posts
Joined: July 2005
Offline
In addition to what toadstorm posted, here's an example using the Point VOP.

Edit - I'm guessing it's 6MB because of the cached strokes to paint the mask.
Edited by Siavash Tehrani - July 15, 2020 23:05:27

Attachments:
mask.hiplc (6.6 MB)

User Avatar
Member
9237 posts
Joined: July 2007
Online
you can also shorten it to:
@P = lerp(@P, @opinput1_P, @weight);
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
530 posts
Joined: March 2014
Offline
Great! Thanks, I'll give it a shot.
User Avatar
Member
530 posts
Joined: March 2014
Offline
DaJuice
In addition to what toadstorm posted, here's an example using the Point VOP.

Edit - I'm guessing it's 6MB because of the cached strokes to paint the mask.


Works like a charm !

Thanks a lot.

R.
User Avatar
Member
442 posts
Joined: April 2018
Online
For the non-VEX approach, you can use a Soft Transform SOP with the Scale Y set to zero, and Distance Metric set to Attribute.

Attachments:
Annotation 2020-07-21 105816.png (358.1 KB)

  • Quick Links