Grasshopper

algorithmic modeling for Rhino

Hy Guys,

is it possible to add Inputs to a Costum Component like it is done in the Merge Component? Just via a "plus" and "minus" button in the component itself?

Nice greets

Alex

Views: 742

Replies to This Discussion

Hi Alexander,

Merge uses two ways of adding inputs. It has the Plus and Minus ZUI and it also automatically adds a new input if the bottom-most one is connected. Adding the plus-and-minus ZUI is fairly easy. All you need to do is implement the IGH_VariableParameterComponent interface in your GH_Component derived class.

You'll need to implement 5 methods which have all been fully commented. If you search this forum for "IGH_VariableParameterComponent" there will be some good hits. Also the original post introducing the IGH_VariableParameterComponent interface is worth reading.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2026   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service