Grasshopper

algorithmic modeling for Rhino

Hello,

I need to create a component whose number and type of input parameters can vary dynamically. There will be a parameter called "setup" and depending on the contents of this parameter, the component will change its set of inputs at runtime.

Is that possible in GrassHopper?

Thank you very much!

Views: 265

Replies to This Discussion

This topic has been discussed before. Dynamically changing the number of connectors means that wires need to be connected/disconnected automatically. There is no viable logic to do so. Without this, there really is no advantage over adding inputs via ZUI.

If the connection/disconnection is no problem for your case, you might want to look into the code of the Merge Component. This component automatically adds an input if all others are connected.

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service