xFlaye Posted March 10, 2021 Share Posted March 10, 2021 (edited) Hi, I've created a basic picket fence setup. Each picket is positioned on a ground fence segment based on its width, as well as the segment's length. There's a curve_height that I want each individual picket to extend to. I'm currently stuck as to which part of the for-loop to put it in. The curve_height section is in the red network box. Thanks for the help. picketFence_w21_alternateHeight1.hipnc Edited March 10, 2021 by xFlaye Added tags & cleaned up file. Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted March 10, 2021 Share Posted March 10, 2021 4 hours ago, xFlaye said: Hi, I've created a basic picket fence setup. Each picket is positioned on a ground fence segment based on its width, as well as the segment's length. There's a curve_height that I want each individual picket to extend to. I'm currently stuck as to which part of the for-loop to put it in. The curve_height section is in the red network box. Thanks for the help. Hi, the new nodes and nodes I've changed are green. picketFence_w21_alternateHeight1_01.hipnc 2 1 Quote Link to comment Share on other sites More sharing options...
xFlaye Posted March 10, 2021 Author Share Posted March 10, 2021 Thank you, @vicvvsh! So that I'm clear on the process, you've created an attribute (pt_id) to every point on the ground curve and set the height value from the curve_height to each of those pt_id's. Then copied that to the scale parameter. Thus, every picket now will scale according to the value represented by the assigned point. That's an elegant and efficient solution. Much appreciated. Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted March 10, 2021 Share Posted March 10, 2021 13 minutes ago, xFlaye said: So that I'm clear on the process, you've created an attribute (pt_id) to every point on the ground curve and set the height value from the curve_height to each of those pt_id's. Then copied that to the scale parameter. Thus, every picket now will scale according to the value represented by the assigned point. Yes, that's right. v@scale is non-uniform scale point attribute - https://www.sidefx.com/docs/houdini/copy/instanceattrs.html 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.