-
0
1
1
- 634428897156875000
-
0
8
10
- true
- true
- 842eb032-7332-4a3f-90e2-fc11af13aa25
-
100;150;0;0
-
100;0;120;0
- Shaded
- ViewCapture01.ghx
- 634428441778281250
- 0
-
-154
-61
- 0.8000001
- 0
- 8
- 57da07bd-ecab-415d-9d86-af36d7073abc
- Number Slider
- Number Slider
- Slider
- Numeric slider for single values
- 92fd4b73-f5ad-48e3-bab7-e7f9f14ae3d8
- false
- true
- true
- 0
-
458
158
161
20
-
458
158
41
20
-
458.1811
158.072
- false
- 600
- 100
- 1600
- 3
- 1
- 1
- 57da07bd-ecab-415d-9d86-af36d7073abc
- Number Slider
- Number Slider
- Slider
- Numeric slider for single values
- d02a7101-d94e-45b1-8b69-2eec37eae1bd
- false
- true
- true
- 0
-
461
187
161
20
-
461
187
41
20
-
461.5325
187.672
- false
- 600
- 100
- 2000
- 3
- 1
- 1
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- Panel
- Automatic File Name - Rebuild solution
- A panel for custom notes and String values
- 24b6974b-edf3-4142-a14a-ec41821f40be
- false
- true
- true
- 0
- J:\Temp\001
- false
- false
- true
- 1
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
135
64
413
72
-
135
64
413
72
-
135.4106
64.88696
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- Panel
- Write File Status
- A panel for custom notes and String values
- e136ef27-fee4-42e5-8910-bee09617ef9c
- false
- true
- true
- 1
- 1efd209b-7699-42c7-88f9-5cd84195a72a
- 123
a,b,c
!@#$%
1,2,2
- false
- false
- true
- 1
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
937
150
317
147
-
937
150
317
147
-
937.7656
150.0815
- false
- fb6aba99-fead-4e42-b5d8-c6de5ff90ea6
- DotNET VB Script (LEGACY)
- '////// Marc Hoppermann ///////////tweaked by Damien Almor ///////rewritten for curves by to]///////adapted by u]...www.utos.blogspot.com
'///readapted to Batch ViewCapture by Victor Leung @ www.dreamationworks.com
' Note1: The script is actually calling Rhino commands.
' Note2: Remember you have to draw something and is selectable for the script to function. The script uses _SelAll then _Zoom _Selected
' Note3: After you toggle blnSave to True, a new viewport will popup, be patient while Rhino work, and wait for that viewport to disappear befor clicking on anything.
' Note4: The component is not stable if you try to mouse click on anywhere while the saving process is running. Some stupid move may crash your programme, save RH and GH files before using this component.
' FileName : String Input = Supply with the path and file name without ".jpg" extension : e.g.: "C:\Temp\001" (Without the quotes)
' blnSave : Boolean Input = Saves when toggles to True (Remember to toggle back to False after use, otherwise the script will re-run itself during next update)
' Resolution_width : Integer Input = Resolution for the captured image
' Resolution_height : Integer Input = well...
' TopYea : Boolean Input = Toggles if the Top View is captured (Default is False if not connected)
' FrontYea : Boolean Input = Toggles if the Front View is captured (Default is False if not connected)
' ...Yea : Boolean Input = Toggles if the corresponding View is captured (Default is False if not connected)
' DisplayMode : Integer Input(0-4) = Sets the display Mode 0:Shaded 1:Wireframe 2:Rendered 3:Ghosted 4:XRay Default:Shaded
If blnSave Then
'For i As Int32 = 0 To arrcrv.Count - 1
app.RunScript("_NewFloatingViewport Projection=Perspective")
app.RunScript("-ViewportProperties _Size " & Resolution_width * 500 / Resolution_height & " " & 500 & " _Display _Shaded _Enter")
Select Case DisplayMode '(If you know what you are doing and have other Custom Display Mode, you are welcomed to add it down here)
Case 0
app.RunScript(" _-SetDisplayMode _Mode _Shaded")
Case 1
app.RunScript(" _-SetDisplayMode _Mode _Wireframe")
Case 2
app.RunScript(" _-SetDisplayMode _Mode _Rendered")
Case 3
app.RunScript(" _-SetDisplayMode _Mode _Ghosted")
Case 4
app.RunScript(" _-SetDisplayMode _Mode _XRay")
Case Else
app.RunScript(" _-SetDisplayMode _Mode _Shaded")
End Select
'app.RunScript(Resolution_width & "_Enter")
'app.RunScript(Resolution_height & "_Enter")
'app.RunScript("_Enter")
doc.UnselectAll
print(TopYea)
If TopYea Then
MRhinoView.EnableDrawing(False)
app.RunScript("'_SelAll")
app.RunScript("'_SetView _World _Top")
app.RunScript("'_Zoom _Selected")
app.RunScript("'_SelNone")
'app.RunScript(Chr(34) & "Exporting Top View...")
MRhinoView.EnableDrawing(True)
app.RunScript("-viewcapturetofile " & FileName & "_top.jpg _DrawGrid=No Width=" & Resolution_width & " Height=" & Resolution_height & " _Enter")
End If
If LeftYea Then
MRhinoView.EnableDrawing(False)
app.RunScript("'_SelAll")
app.RunScript("'_SetView _World _Left")
app.RunScript("'_Zoom _Selected")
app.RunScript("'_SelNone")
'app.RunScript(Chr(34) & "Exporting Left View...")
MRhinoView.EnableDrawing(True)
app.RunScript("-viewcapturetofile " & FileName & "_left.jpg _DrawGrid=No Width=" & Resolution_width & " Height=" & Resolution_height & " _Enter")
End If
If RightYea Then
MRhinoView.EnableDrawing(False)
app.RunScript("'_SelAll")
app.RunScript("'_SetView _World _Right")
app.RunScript("'_Zoom _Selected")
app.RunScript("'_SelNone")
'app.RunScript(Chr(34) & "Exporting Right View ...")
MRhinoView.EnableDrawing(True)
app.RunScript("-viewcapturetofile " & FileName & "_right.jpg _DrawGrid=No Width=" & Resolution_width & " Height=" & Resolution_height & " _Enter")
End If
If FrontYea Then
MRhinoView.EnableDrawing(False)
app.RunScript("'_SelAll")
app.RunScript("'_SetView _World _Front")
app.RunScript("'_Zoom _Selected")
app.RunScript("'_SelNone")
'app.RunScript(Chr(34) & "Exporting Front View ...")
MRhinoView.EnableDrawing(True)
app.RunScript("-viewcapturetofile " & FileName & "_front.jpg _DrawGrid=No Width=" & Resolution_width & " Height=" & Resolution_height & " _Enter")
End If
If BackYea Then
MRhinoView.EnableDrawing(False)
app.RunScript("'_SelAll")
app.RunScript("'_SetView _World _Back")
app.RunScript("'_Zoom _Selected")
app.RunScript("'_SelNone")
'app.RunScript(Chr(34) & "Exporting Back View ...")
MRhinoView.EnableDrawing(True)
app.RunScript("-viewcapturetofile " & FileName & "_back.jpg _DrawGrid=No Width=" & Resolution_width & " Height=" & Resolution_height & " _Enter")
End If
If PerspectiveYea Then
MRhinoView.EnableDrawing(False)
app.RunScript("'_SelAll")
app.RunScript("'_SetView _World _Perspective")
app.RunScript("'_Zoom _Selected")
app.RunScript("'_SelNone")
'app.RunScript(Chr(34) & "Exporting Perspective View ...")
MRhinoView.EnableDrawing(True)
app.RunScript("-viewcapturetofile " & FileName & "_perspective.jpg _DrawGrid=No Width=" & Resolution_width & " Height=" & Resolution_height & " _Enter")
End If
app.RunScript("_CloseViewport")
print("Done! Jpgs exported to " & FileName)
Else print("inactive")
End If
- 0
- DotNET VB Script (LEGACY)
- View Capture - JPEG
- A VB.NET scriptable component
- 86a2351e-5ce5-4fab-8626-266542944e0c
- false
- true
- true
- longest_list
-
722
153
151
244
-
822
155
24
240
-
834
275
- true
- 12
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable FileName
- Script Variable FileName
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable blnSave
- Script Variable blnSave
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable Resolution_width
- Script Variable Resolution_width
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable Resolution_height
- Script Variable Resolution_height
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable TopYea
- Script Variable TopYea
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable FrontYea
- Script Variable FrontYea
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable BackYea
- Script Variable BackYea
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable LeftYea
- Script Variable LeftYea
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable RightYea
- Script Variable RightYea
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable BottomYea
- Script Variable BottomYea
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable PerspectiveYea
- Script Variable PerspectiveYea
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable DisplayMode
- Script Variable DisplayMode
- true
- true
- 2
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- Output
- Print, Reflect and Error streams
- true
- false
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Result A
- Output parameter A
- true
- false
- Variable FileName
- FileName
- Script Variable FileName
- b2defbad-d8e8-460a-a168-11e86f07e2fa
- true
- true
- true
- 1
- 24b6974b-edf3-4142-a14a-ec41821f40be
- abf1fd1b-dbe5-4be6-9832-d8dc105e207f
- true
- false
-
724
155
95
20
-
724
155
95
20
-
773
165
- true
- Variable blnSave
- blnSave
- Script Variable blnSave
- ad4d028d-6b9b-4f3f-85d6-b1afbd162253
- true
- true
- true
- 1
- 57ba8afd-984f-415f-8a6f-51ed45ee91c1
- true
- false
-
724
175
95
20
-
724
175
95
20
-
773
185
- true
- Variable Resolution_width
- Resolution_width
- Script Variable Resolution_width
- eb8f442a-7243-46c9-9f2e-d50de0a6ef23
- true
- true
- true
- 1
- 92fd4b73-f5ad-48e3-bab7-e7f9f14ae3d8
- efe48ae7-2987-421b-a33a-1f7be1c3f050
- true
- false
-
724
195
95
20
-
724
195
95
20
-
773
205
- true
- Variable Resolution_height
- Resolution_height
- Script Variable Resolution_height
- 27b10c6a-4cff-4713-801a-38c8b663a65f
- true
- true
- true
- 1
- d02a7101-d94e-45b1-8b69-2eec37eae1bd
- efe48ae7-2987-421b-a33a-1f7be1c3f050
- true
- false
-
724
215
95
20
-
724
215
95
20
-
773
225
- true
- Variable TopYea
- TopYea
- Script Variable TopYea
- 5f6335ed-2f8d-496f-96af-e2b9dd47cf7d
- true
- true
- true
- 1
- 40bd30b9-b1ea-41bb-8976-67a3f5ebf8df
- 3cda2745-22ac-4244-9b04-97a5255fa60f
- true
- false
-
724
235
95
20
-
724
235
95
20
-
773
245
- true
- Variable FrontYea
- FrontYea
- Script Variable FrontYea
- 6f00ea57-2a55-45d0-985f-2911a8031499
- true
- true
- true
- 1
- 40bd30b9-b1ea-41bb-8976-67a3f5ebf8df
- 3cda2745-22ac-4244-9b04-97a5255fa60f
- true
- false
-
724
255
95
20
-
724
255
95
20
-
773
265
- true
- Variable BackYea
- BackYea
- Script Variable BackYea
- 8bdc3ed8-67f0-4000-8a31-933286d1d3a6
- true
- true
- true
- 0
- 3cda2745-22ac-4244-9b04-97a5255fa60f
- true
- false
-
724
275
95
20
-
724
275
95
20
-
773
285
- true
- Variable LeftYea
- LeftYea
- Script Variable LeftYea
- 1730153f-5adc-4862-8e58-00832b091628
- true
- true
- true
- 0
- 3cda2745-22ac-4244-9b04-97a5255fa60f
- true
- false
-
724
295
95
20
-
724
295
95
20
-
773
305
- true
- Variable RightYea
- RightYea
- Script Variable RightYea
- bd843158-ed4d-434d-bc4d-0f9c51668040
- true
- true
- true
- 0
- 3cda2745-22ac-4244-9b04-97a5255fa60f
- true
- false
-
724
315
95
20
-
724
315
95
20
-
773
325
- true
- Variable BottomYea
- BottomYea
- Script Variable BottomYea
- 11eeea8a-c62e-44e7-948d-5e45407d38a5
- true
- true
- true
- 0
- 3cda2745-22ac-4244-9b04-97a5255fa60f
- true
- false
-
724
335
95
20
-
724
335
95
20
-
773
345
- true
- Variable PerspectiveYea
- PerspectiveYea
- Script Variable PerspectiveYea
- 250c53c3-6ba7-49c0-90a0-db8dcbf2510b
- true
- true
- true
- 0
- 3cda2745-22ac-4244-9b04-97a5255fa60f
- true
- false
-
724
355
95
20
-
724
355
95
20
-
773
365
- true
- Variable DisplayMode
- DisplayMode
- Script Variable DisplayMode
- bc9b4f99-dbc7-4568-8f86-12a810f1fde0
- true
- true
- true
- 1
- 1bfb982b-9dc6-46f2-a85e-27805b13ba5a
- efe48ae7-2987-421b-a33a-1f7be1c3f050
- true
- false
-
724
375
95
20
-
724
375
95
20
-
773
385
- true
- Output
- out
- Print, Reflect and Error streams
- 1efd209b-7699-42c7-88f9-5cd84195a72a
- false
- true
- true
- 0
-
849
155
22
120
-
849
155
22
120
-
861.5
215
- true
- Result A
- A
- Output parameter A
- 33c71130-e6b0-477b-b60e-35bdcf24afd9
- true
- true
- true
- 0
-
849
275
22
120
-
849
275
22
120
-
861.5
335
- true
- ad483f40-dc72-40dc-844d-c9e462c7d19f
- Boolean Toggle
- false
- Boolean Toggle
- Save screen captures as jpgs
- Boolean (true/false) toggle
- 57ba8afd-984f-415f-8a6f-51ed45ee91c1
- false
- true
- true
- 0
-
211
224
197
20
-
211
224
197
20
-
211.9214
224.416
- false
- ad483f40-dc72-40dc-844d-c9e462c7d19f
- Boolean Toggle
- true
- Boolean Toggle
- Toggle
- Boolean (true/false) toggle
- 40bd30b9-b1ea-41bb-8976-67a3f5ebf8df
- false
- true
- true
- 0
-
459
249
87
20
-
459
249
87
20
-
459.7529
249.91
- false
- 57da07bd-ecab-415d-9d86-af36d7073abc
- Number Slider
- Number Slider
- Slider
- Numeric slider for single values
- 1bfb982b-9dc6-46f2-a85e-27805b13ba5a
- false
- true
- true
- 0
-
462
377
161
20
-
462
377
41
20
-
462.7529
377.91
- false
- 3
- 0
- 4
- 3
- 1
- 1