Using vop bind to affect another node

   3076   9   0
User Avatar
Member
1007 posts
Joined: April 2017
Offline
Hi!

I would like to know how I can use a noise in a point vop to affect the distance in a polyextrude (or any node really…).

Right now, I've got a noise that I connected to a “bind” that I named “myNoise”. How to I get the “distance” of a “polyextrude” to be affected by that bind?

I'm new to houdini so be gentle!

Thanks!
User Avatar
Member
2537 posts
Joined: June 2008
Offline
Some nodes will simply allow you to type an attribute name into the field, like the width on polywire. Give it a try. Type @myNoise into the distance field. The attribute must exist on the points or primitives upstream of the node where you use it.
Edited by Enivob - Feb. 5, 2018 20:48:35
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
1007 posts
Joined: April 2017
Offline
hmmm…

Still doesn't work. When I check the info at my polyextrude, I can see:


2 Point Attrs
myNoise flt ⁝ P 3flt (Pos)

but, the @myNoise does nothing in the “distance” section.

Am I supposed to use bind or bind export?

Thanks for helping.

-Olivier
User Avatar
Member
7771 posts
Joined: Sept. 2011
Offline
Not all nodes work that way, polyextrude being one of them. There's currently only a few parameters on the polyextrude that can be influenced by attributes.

http://www.sidefx.com/docs/houdini/nodes/sop/polyextrude#local-control [www.sidefx.com]
User Avatar
Member
118 posts
Joined: Feb. 2016
Offline
yes local control, “distance scale” (default zscale) is the attribute you want I guess
User Avatar
Member
2537 posts
Joined: June 2008
Offline
Thanks for that link to the help, @zscale does work if you place it on Primitives.

Attachments:
untitled-1.jpg (134.0 KB)
ap_randomize_extrude_distance.hiplc (72.0 KB)

Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
2537 posts
Joined: June 2008
Offline
You can also export the primitive group from the polyextrude then promote the group to points. Then you can apply a mountain to just that point group to randomize the points along the front of the extrude.

Attachments:
untitled-1.jpg (126.8 KB)

Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
1007 posts
Joined: April 2017
Offline
wow… I'm lost!

So, I'm supposed to write zscale in the bind of the point vop?

Did I forget to say I'm a noob? Also, I'm not touching VEX even with a ten foot pole. I'd like to stick to vops since I'm comfortable with nodes stuff.

Thanks.

-Olivier
User Avatar
Member
2537 posts
Joined: June 2008
Offline
VEX is actually easier than VOPs. You have to drop down several nodes, connect them up and configure them correctly in VOPs to produce the one line of code, which is all you need for this solution.
Edited by Enivob - Feb. 6, 2018 13:24:29
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
1007 posts
Joined: April 2017
Offline
I completely understand that the most efficient way is VEX (when you know what you're doing) but I've never been good at coding since I get zero enjoyment out of it. Someday, I'll gradually get comfortable with VEX but I'll stick to baby steps using vops for now.

No matter, thanks for helping!

-Olivier
  • Quick Links