Grasshopper

algorithmic modeling for Rhino

Hello everybody

Maybe it's a stupid question but I don't figure out how to get the active GrassHopper document outside of any component. I know the way of OnPingDocument of GH_Component but nothing about generally get that active document.


Thanks in advance,

Andras

Views: 2414

Replies to This Discussion

Grasshopper.Instances contains a lot of static method and properties that give you access to things like the Grasshopper window, the canvas and the currently loaded document. For example:

GH_Document doc = Grasshopper.Instances.ActiveCanvas.Document

gives you the document (if any) loaded in the currently active canvas.

Thanks David

That's what I need.

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service