Grasshopper

algorithmic modeling for Rhino

Button within Grasshopper to switch between Grasshopper Defintions

Hi

To explain further I am trying to create sequence of tables for user to modify and would like to have them in completely new Grasshopper definitions (instead of putting them on somewhere else in the canvas of one definition).

Has there been a plugin for this already? Perhaps Andrew's MetaHooper?

 

Views: 288

Replies to This Discussion

this doesn't exist in any plugin that I know of, but it can be scripted. You can simply assign a new document (that's currently open) to the Grasshopper.Instances.ActiveCanvas.Document property and it will switch to that document. Something like:

var nextDoc = Grasshopper.Instances.DocumentServer.NextAvailableDocument();
Grasshopper.Instances.ActiveCanvas.Document = nextDoc;

Depending on what you want to do. If you want to open fresh new documents you should look at the methods available through script access - like Grasshopper.Instances.DocumentEditor.ScriptAccess_NewDocument()
or
Grasshopper.Instances.DocumentEditor.ScriptAccess_OpenDocument()

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