algorithmic modeling for Rhino
Hi all
I want to make a component to classify the input geometry,there no output at the beginning(the output will be create after geometry is given).It works well before I use the "SetDataTree()".It says "output parameter index[] too high or too low for component". It weird! is it a bug?
someone can help me? thanks
(here is my code and screenshot)
Tags:
Hi Tom
thank your so much for your solution,but I find it still doesn't work (I didn't completely according to your way to do it),do you put your code in the VS to test it?
You are not allowed to change the topology of the network during solutions. That means no deleting objects, no adding/deleting wires, no adding/removing inputs or outputs. You're also not allowed to expire objects during solutions.
Tom's approach is roughly correct, with the exception that he calls CreateOutputs() from within SolveInstance. What you need to do is:
Do note that some components in Grasshopper whose output topology depends on the input data do not take this approach. Have a look at Explode Tree for example. It will modify the outputs only when the user asks for this via the menu.
Hi David
thank you for you answer,but did it as your said,but it still doesn't work ,do I misunderstand your mean?(I post my file)
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by