algorithmic modeling for Rhino
Private Sub RunScript(ByVal Geometry As OnBrep, ByVal Slider As String, ByVal Toggle As Boolean)If (toggle = False) ThenPrint("gate not open")ReturnEnd IfDim i As New IntegerDim Geometry_i As New OnBrepDim count As New Integercount = Geometry.Count()Dim obj_list As New List(Of IRhinoBrepObject)For i = 0 To count - 1Geometry_i = Geometry(i)Dim obj As IRhinoBrepObject = doc.AddBrepObject(Geometry_i)obj_list.Add(obj)doc.Regen()NextDim filename As String = "C:\Documents and Settings\Lian\Desktop\GH_Animation\frame" & Slider & ".jpg"app.RunScript("-_Render")app.RunScript("-_SaveRenderWindowAs " & Chr(34) & filename & Chr(34))app.RunScript("-_CloseRenderWindow")For i = 0 To count - 1doc.DeleteObject(New MRhinoObjRef(obj_list(i)), True, True)NextEnd Sub
Tags:
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
© 2024 Created by Scott Davidson. Powered by