Transforming points via "Height" attribute:

   4001   2   0
User Avatar
Member
4 posts
Joined: 11月 2021
オフライン
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 - 2022年6月7日 06:05:05

Attachments:
Screenshot_4.png (1.4 MB)

User Avatar
Member
2660 posts
Joined: 6月 2008
オフライン
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 - 2022年6月7日 07:40:22
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
User Avatar
Member
4 posts
Joined: 11月 2021
オフライン
That worked great thank you.
  • Quick Links