Morph baased on Y distance

Hello! I'm trying to setup a morph based on the Y distance from a null. I'm trying to make my character's feet react to the floor. I did 2 morphs, one per foot, and everytimes the foot is reaching the floor distance on the y axis, I'd like to control It with a gradient and have the foot slightly enlarge sideways.
I know the setup for a moph based on the distance from a null (in all 3 directions) but I can't figure out how to do it based on the Y axis only/

Thank you!
 

SplineGod

New member
Go to object properties/deform/normal displacement.
Change it from normal displace to morphmap and choose your map.
You can now apply a gradient texture based on Y Disttance to a null or other object
to drive the morph.
 

SplineGod

New member
I like the node editor but its hard to justify using it all the time when there are easier ways to do things :)
 

Sensei

TrueArt Support
I know the setup for a moph based on the distance from a null (in all 3 directions) but I can't figure out how to do it based on the Y axis only/

I know Larry answered already, but here is nodal way:

Tools > Vector Scalar, pick up Y Channel from drop down, repeat with second vector (or use TrueArt's Node Library > Tools > Split Vector node), Math > Scalar > Subtract on both, then Math > Scalar > Abs, if it has to work in both directions (positive and negative Y). Output treat the same way as you would get Math > Vector > Distance..

If you want to use Math > Vector > Distance, you can - just use Math > Vector > Multiply by 0,1,0 it will get ride of X and Z axes, leaving just Y, and Distance node will work similar way to Subtract and Abs together.
 
Top Bottom