I have been attempting to get my L-System to select random leaves from a number of premade ones.
I have object merged all the leaves in separately and have the connected to a switch, which is passed into the J node of the L-System.
I have an idea how I should do it using the L-System's Leaf parameters and stamping on the Switch node's input parameter, but I am unsure how to change my rules in the L-System to use these random leaves.
FX
X:t<e=~(10)!";/(137.5)FX
X:t=e=~(10)!";/(137.5)FFXK
is my current rules, with J being the leaf and K the flower
L-System and randomly selected leaves
4747 1 1- Josh Oram
- Member
- 43 posts
- Joined: Jan. 2014
- Offline
- dustykhan
- Member
- 25 posts
- Joined: July 2012
- Offline
I'm no Houdini expert but I would set a point as the leaf geo used by the l-system, which you can then set as a group and use to instance the leaves onto.
Once you have your L-System and leaf group set up, connect this to the second input of a Copy sop and then add the Switch to the first input. You can then create a stamp function to randomly select the leaves and copy them to the leaf group.
Not sure if I have explained it too well and there is probably a better way of approaching this, but I'm pretty sure that should work…
Once you have your L-System and leaf group set up, connect this to the second input of a Copy sop and then add the Switch to the first input. You can then create a stamp function to randomly select the leaves and copy them to the leaf group.
Not sure if I have explained it too well and there is probably a better way of approaching this, but I'm pretty sure that should work…
-
- Quick Links