Custom randomize size of copied geometry through the new Point node.
3716 3 0- Midphase
- Member
- 833 posts
- Joined: Jan. 2018
- Offline
Hello gurus. Today's question is something that I feel I'm close to figuring out but not quite.
My set up is simple, Box, Copy to Points, a Grid and finally a Point node to define some parameters.
I'm basically trying to figure out if I can randomize the height of my boxes strictly through the Point attributes.
I can get somewhat in the general vicinity of what I'm trying to do by using the Scale attribute and a rand function like this: value * float(rand(@elemnum))
However I would like to be able to control specifically the size randomness in x, y or z independently. As it is right now, it is applied uniformly to all of my geometry so that while I can achieve the variations in size, the geometry is scaled in x, y and z simultaneously.
So for instance, let's say I wanted to keep the x and z scale the same, but randomize the y scale from point to point in my grid.
Any ideas?
My set up is simple, Box, Copy to Points, a Grid and finally a Point node to define some parameters.
I'm basically trying to figure out if I can randomize the height of my boxes strictly through the Point attributes.
I can get somewhat in the general vicinity of what I'm trying to do by using the Scale attribute and a rand function like this: value * float(rand(@elemnum))
However I would like to be able to control specifically the size randomness in x, y or z independently. As it is right now, it is applied uniformly to all of my geometry so that while I can achieve the variations in size, the geometry is scaled in x, y and z simultaneously.
So for instance, let's say I wanted to keep the x and z scale the same, but randomize the y scale from point to point in my grid.
Any ideas?
>>Kays
For my Houdini tutorials and more visit:
https://www.youtube.com/c/RightBrainedTutorials [www.youtube.com]
For my Houdini tutorials and more visit:
https://www.youtube.com/c/RightBrainedTutorials [www.youtube.com]
- jsmack
- Member
- 7737 posts
- Joined: Sept. 2011
- Offline
- tamte
- Member
- 8525 posts
- Joined: July 2007
- Offline
- Midphase
- Member
- 833 posts
- Joined: Jan. 2018
- Offline
Thank you both, awesome solutions! This is why I love this place.
>>Kays
For my Houdini tutorials and more visit:
https://www.youtube.com/c/RightBrainedTutorials [www.youtube.com]
For my Houdini tutorials and more visit:
https://www.youtube.com/c/RightBrainedTutorials [www.youtube.com]
-
- Quick Links