Transforming points via "Height" attribute:

   2012   2   0
User Avatar
Member
4 posts
Joined: Nov. 2021
Offline
Hello,

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?
Cheers,
Ryan

Edited by FullBoyle - June 7, 2022 06:05:05

Attachments:
Screenshot_4.png (1.4 MB)

User Avatar
Member
2529 posts
Joined: June 2008
Offline
You generally don't drive a transform node with attributes. Just use an AttributeWrangle and type vex code.
v@P.y += @height;
Edited by Enivob - June 7, 2022 07:40:22
Using Houdini Indie 20.0
Ubuntu 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
4 posts
Joined: Nov. 2021
Offline
That worked great thank you.
  • Quick Links