Search - User list
Full Version: Attribute Blend Node?
Root » Houdini Indie and Apprentice » Attribute Blend Node?
GregBollella
I want to proportionally blend two y-values of P from two different nodes. Seems like a pretty straightforward and common need. Haven't been able to really find a node to do this. Here's a snippet of VEX that works. But, I wonder, is there a node that I could use instead?

float blendAmt = chf("blendAmount");
float Y0 = @P.y;
float Y1 = @opinput1_P.y;

@P.y = ((Y0*blendAmt)+(Y1*(1-blendAmt)));


Thanks,
Greg
animatrix_
Hi,

You can use Blend Shapes SOP but you have to store @P.y in an attribute first.
GregBollella
animatrix_
Hi,

You can use Blend Shapes SOP but you have to store @P.y in an attribute first.

Thanks. In this particular case the x and z values for the two positions are the same as only the y value varies, so I was able to get Blend Shapes to work just fine using only P.

I see though that if the x and z values were different and I wanted to maintain them I'd need to put @P.y into a unique attribute.

Cheers,
Greg
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB