generative modeling for Rhino
I like the new variable parameter feature for changing the amount of inputs and outputs on components, but I am wondering, would it be possible to control that amount using, say a number slider instead?
This would open up a ton of new possibilities. It would greatly aid me on my current project. Any advice or input would be greatly appreciated as usual! Thanks!!
Maybe I misunderstand, what you want to do, but how would you make use of variable numbers of inputs/outputs? You'd still need to connect them...
Or, even better, after you painstakingly connected them, you yank the slider and lose all your work.
I just want to be able to control the amount of inputs, like say on an Entwine Component, and the outputs on an Explode Component with an integer number instead of clicking the minus and plus signs on the component when you zoom in. It is ideal for something that needs to change inputs, outputs in real time.
I'm using it for formatting a variable amount of point coordinates. If this is possible to do, I know it will work perfectly for what I need.
Graft is your friend.... embrache the dataTree..
Seriously. If you end up copying a set of components for each output just to entwine them afterwards, a siple graft would most likely have done the same.
If each output gets handled differently, you couldn't handle connecting automatically anyway.
For almost all problems will only need one path per algorithm. NEVER have multiple paths doing the exact same thing.
I use Graft all the time, but its definitely not what I need for this. Yeah, I don't use duplicates. If it is possible to do what I previously mentioned, it would be exactly what I need.
I'd really like to see what you are doing, becaue I just can't image where you'd need dynamic outputs.
But Hannes' point still stands. What about connections?
There is an additional problem to do with the specifics of the Grasshopper code. It is not possible to modify the network during a solution, so even if there were some external way to adjust the parameter count, it could not come from within the same network.
I understand what you mean about the inputs and outputs. I won't be able to use them the way I was hoping to but it's definitely not a huge deal. Thanks for the help with this though!