Grasshopper

algorithmic modeling for Rhino

hello everybody,

I want to write a simple code (C#)  that takes several built-in components from grasshopper and makes them into one.

like a chain of actions.. just get the first input and give the last output.

for example(a very simple one): a component that ask you for 4 int inputs and gives you a list of vertics.thanks for the help! :)

Views: 728

Attachments:

Replies to This Discussion

Er ... hmm ... the easiest way to do this is to understand whet each component does and then ... it's party time. Or you mean a "black hole" that absorbs innocent components ... and ... spits the result(s)? (Pulitzer/Emmy/Grammy on sight - or some equivalent (even a Nobel) - for the first who could(?) do(??) that, he he). 

thanks for the answer peter, but this isn't what I ment,

I have a specific order of component I want to use, I want to bulid a one new component that will contain the entire sequence.

to simplfy the question, can I use a bulit-in GH component such as "Rectangle" or "Mplane" in my C# visual studio like it was a closed function?

 

Components are defined in different assemblies (some are part of Grasshopper.dll, others are part of standard GHA files or 3rd party GHA files). Thus directly using those component classes would require you to reference those assemblies.

Alternatively you can ask Grasshopper to instantiate the components in question for you, and then you have to somehow deal with the IGH_Component instances that you get. 

Either way that is a lot more work than just coding up this particular functionality from scratch. In fact what you're looking for here already exists in the form of DivideSurface or Grid components.

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