Grasshopper

algorithmic modeling for Rhino

hi everybody, I have designed a custom UI (a c# win application) to control some parameters in my grasshopper code. I want to know how can i connect the UI to the GH?

(In detail, i have 2 points which i want to draw a line between them. The first point called FisrtPt is a fixed point from RHINO but the second point called SecondPt is the point which i want to be able to get its data from the UI.)

Views: 650

Replies to This Discussion

Do you need the separate UI app or would a custom UI component for GH do the same?

Never tried this, but should be no problem to fire up a Windows.Forms UI from a component and routing all GH params straight through.

Everything else would need some serious inter-app communication (which is a pain in the ass in my experience) and at least one sender component in GH anyway.

Accessing Grasshopper from a separate exe can be quite difficult. Loading and displaying a window defined in a separate dll is quite easy if you also supply a GHA file which is loaded by Grasshopper.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

thanks for your attention,

Actually I got the idea from MEL scripting in Maya where you can make your own custom icons from your codes by dragging and dropping them in you toolbar shelves. I've seen some codes which have their own menus so that you can use them easily during your process.

You can install your own GHA's by drag/dropping them onto GH.

Have a look >here/a> for a quick intro to creating GHA components.

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