Grasshopper

algorithmic modeling for Rhino

hello

i would like to use a .txt file which  for example has lines of 

"start"

"ring" (the word  ring  refers to a 3d object already designed)

"move"

"move"

"ring"

to create an arranged sequence of the 3d objects inside the file(see image attached)

is this possible?how could i design this?

i am a new grasshopper user so i dont have many knowledge of this.i started trying it with rhinoscript and had no luck so this could also be a choice/solution

thank you

Views: 550

Replies to This Discussion

Like this?

The code inside the script is the following:

Private Sub RunScript(ByVal x As Brep, ByVal y As String, ByRef A As Object)
Select Case y
Case "START"
v = vector3d.Zero
Case "RING"
x.Translate(v)
a = x
Case "MOVE X"
v += vector3d.XAxis * 3
Case "MOVE Y"
v += vector3d.YAxis * 3
End Select
End Sub
'Custom additional code>
Dim v As New vector3d
'/Custom additional code

 

 

It was the most helpful thing that ever happened to me...haha

Really, thank you very much, it was exactly what I needed..

To be able to use Grasshopper the computer must be running Windows.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service