Grasshopper

algorithmic modeling for Rhino

So I had an idea but there might a better way to achieve this.  What I would really like to be able to put data into the Rhino file that Grasshopper would see.  This way I could use that same grasshopper definition across multiple files.  For instance I could put something like Height = 12 in the Rhino file either as text or maybe DocumentUserText.  Then you could set up a Pipeline to read that info.  This way I could have 1 file with H=6 and one with 12 and the definition would react accordingly.  Maybe there is a way to already to this that I am overlooking.

Views: 483

Replies to This Discussion

Actually maybe a better question/comment would be can we see the implentation of the GetUserText and GetDocumentText functions for python.  Then I could do exactly what I am after.

Hi Dennis,

Try this:


Click on the "refresh" button, each time you make some change in Rhino using "GetUserText" and/or "GetDocumentUserText" commands.

Attachments:

Awesome thanks. That is exactly what I was looking for.

One question and important step I was missing so if just plug a crv object into python it sends a GUID but that's not the same as the GUID of the object in Rhino?

Probably not. If you want to operate on GUIDs then you'll have to plug the curve into a free-floating GUID parameter first.

--

David Rutten

david@mcneel.com

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service