Search - User list
Full Version: Transforming points via "Height" attribute:
Root » Houdini for Realtime » Transforming points via "Height" attribute:

I'm still starting out in Houdini and have a question which I think should have a fairly simple solution, but I'm left scratching my head. Essentially as you can see I have created a point attribute called "height" which is just a value between 0-1 based on colour.

What I'm trying to achieve is to basically transform the Y position of all the points based on the height attribute values accordingly. I can only get as far as setting the transform of the points by a random "height" value, which causes all points to have the same transform value, which is not what I need.

any help would be greatly appreciated, hopefully there is a simple expression to do so?

You generally don't drive a transform node with attributes. Just use an AttributeWrangle and type vex code.
v@P.y += @height;
That worked great thank you.
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