jingaa Posted March 11, 2015 Share Posted March 11, 2015 Hello guys, i was working on a kind of procedural tree but i couldnt figured it out something.... If you guys check the picture i wanna control the angle with slider. ın rule1 there is an angle which is (137.5) so i wanna add a slider and control that angle with a slider. Is anybody has an idea about what i can do for that? Thanx Quote Link to comment Share on other sites More sharing options...
michael Posted March 11, 2015 Share Posted March 11, 2015 make a parameter and reference it the same way that "stem_length" is being used... Quote Link to comment Share on other sites More sharing options...
jingaa Posted March 11, 2015 Author Share Posted March 11, 2015 (edited) that didnt work actually.... i have tried that. i tried same method like `chs("different_paramater")` Edited March 11, 2015 by jingaa Quote Link to comment Share on other sites More sharing options...
old school Posted March 11, 2015 Share Posted March 11, 2015 L-systems uses it's own rules so can't use regular Houdini expressions as is. You can add additional single character variables in the Values tab. Give it a unique variable name (can't conflict with existing variables) and you then have a value slider to work with. Just use that string variable name in your rules and it will be substituted with your value as the rules expand. It will behave like any other l-system variable as well. Hope that helps. Quote Link to comment Share on other sites More sharing options...
ayidi Posted March 12, 2015 Share Posted March 12, 2015 (edited) that didnt work actually.... i have tried that. i tried same method like `chs("different_paramater")` Did you check if the value of chs() is expanding correctly by pressing the middle mouse button ("Expand String Value")? I believe the rule is incorrect not your channel reference. Edited March 12, 2015 by ayidi Quote Link to comment Share on other sites More sharing options...
jingaa Posted March 12, 2015 Author Share Posted March 12, 2015 Yes, when i do (`chs()`) and middle click inside and change the value, the angle is changing too. So that part is working 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.