MOAB
Hi everyone,

I just wanted to know how we can retrieve the distance between "origin" points and "hits" points when we use the rayProject node.
My goal is to use that distance with the extractor node (copy stamp) to drive the height of some scattered objects.

I used the arrayExpression with that expression but it seems to doesn't work :
$E = mag(<<$EX, $EY, $EZ >> - <<$EX2, $EY2, $EZ2 >>);

<<$EX, $EY, $EZ >> represents the original points
<<$EX2, $EY2, $EZ2 >> represents the hits points

Thx in advance
Reply 0 0
pshipkov
Check the attached file.
Scrub the time slider to see how projected geo's point colors change according to distance to origin.
Reply 0 0
MOAB
Great Peter, thx a lot
So I just need to use the Point node (Point color) to do that.
Perfect ;)
Reply 0 0
pshipkov
There are many ways to do that.
I used the color display for visual feedback.
Everything you need is the "mag" line from it and then use it wherever you want.
Reply 0 0
Reply