Grasshopper

algorithmic modeling for Rhino

Hi, I'm trying to do a script which can open a grasshopper definition automatically. I can execute Rhino and launch Grasshopper, but I can't make that grasshopper automatically open a .gh definition.

¿Is there any way to do this? I'm think in a batch that simulate the key press of the shortcuts to open document, introduces the path, and press enter, but it can fail if the focus is in another window.

Views: 1779

Replies to This Discussion

Hi Manuel,

Grasshopper exposes a RhinoScript interface. The following methods are available:

IsEditorLoaded()
IsEditorVisible()
LoadEditor()
ShowEditor()
HideEditor()
EnableBanner()
DisableBanner()
IsSolverEnabled()
EnableSolver()
DisableSolver()
RunSolver(expireAll As Boolean)
OpenDocument(fileName As String)
CloseDocument()
CloseAllDocuments()
SaveDocument()
SaveDocumentAs(fileName As String)
AssignDataToParameter(parameterID As String, data As Object)
BakeDataInObject(objectID As String)

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thanks a lot, that's what i'm looking for.

Hello

When The Remote Controll Panel is activate you can hide The Grasshopper Editor and keep the grasshopper object preview at the screen...

So It is poossible to show the objects and hide the Editor.

Dis somebody has a function in VB/rhinoscript/python to set it without using the Remote control panel?

Charles

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