You can also do it without scripting using Number Series, Interval/ Data at List Index, and the List Subset components based on your UV sliders.
Marc On May 13, 12:39 pm, David Rutten <[email protected]> wrote: > Hi Farley, > > you're not overlooking the obvious. We are still lacking many > components that allow you to modify and create tree structures. Until > these components have been added 0.5 will remain the official public > version. > > What you want can be done using a VB component. See this > image:http://groups.google.com/group/grasshopper3d/web/MakeATree.png > > The code inside the VB component is: > > '-------------------------------------------------- > Sub RunScript(ByVal x As List(Of Object), ByVal N As Integer) > Dim tree As New DataTree(Of Object) > > Dim count As Int32 = -1 > Dim branch As Int32 = 0 > > For i As Int32 = 0 To x.Count - 1 > count += 1 > If (count >= N) Then > count = 0 > branch += 1 > End If > > Dim path As New EH_Path(branch) > > tree.Add(x(i), path) > Next > > A = tree > End Sub > '-------------------------------------------------- > > -- > David Rutten > [email protected] > Robert McNeel & Associates
