algorithmic modeling for Rhino
Ah , I think I can get it from david's stack script here with very little tweaking:
http://www.grasshopper3d.com/forum/topics/if-expression-repeat-data
Figured it out:
Private Sub RunScript(ByVal data As List(Of Integer), ByVal repeatLength As Integer, ByRef A As Object)
Dim myArray(repeatLength) As Integer
Dim k As Int32 = -1
For i As Int32 = 0 To repeatLength
k += 1
If (k >= data.Count) Then k = 0
myArray(i) = (data(k))
Next
A = myArray
End Sub
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by