Grasshopper

algorithmic modeling for Rhino

Hi everyone, 

I am currently working on a custom component for optimization. I want to create a custom wire for my input/output that can attach to any component like the wire of timer component (I created a fake illustration of it above) so i can get the instance GUIs of the attached components and control them. Actually my purpose is to disable/enable the simulation engine components so i can stop the simulation for a while when i am playing with the parameter sliders manually. 

Has someone ever had similar issue? Any help is very appreciated.

Thanks, 

Akbar

Views: 755

Replies to This Discussion

It's a lot of work. You're going to have to:

  1. Override the attributes of your component and output parameter.
  2. The output parameter must claim to not have an output grip, yet still draw it.
  3. Override the display of your attributes to draw your custom wires.
  4. Specially handle the mouse-down even over the output parameter and create a new Interaction object which knows how to draw your special wires.

I'm guessing 1000~2000 lines of complicated code.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service