algorithmic modeling for Rhino
hi everyone,
i am new to coding, and am trying to make a c# component which does the same thing as galapagos does, which is get the calculated value from two sliders, and use the calculated result to affect the tickvalue of the sliders in the next generation, and continuous loop until certain iteration. i follow what david did in the post here to make the basic structure within the component. i tried to use ExpireSolution and NewSolution method but still got no luck to get it run.
i knew delegate or ScheduleSolution might be right directions to approach, but i am not sure how to use them correctly in this case.
any ideas or suggestions from guys whom have tried to make it or whoever made it?
thanks in advance!
Tags:
You shouldn't use different threads, that'll just complicate matters. Also this is not at all how Galapagos works, Galapagos shows a new window and triggers solution from the outside. Your script component participates in the solution.
I can probably come up with an example of how to display a window from a C# component, but it'll take a while.
The attached file displays a window with a single button which attempts to find two slider positions that together generate a specific target value. The code is not clever, but it can show you how to approach a Galapagos like framework.
hi david,
thanks for you quick reply and the great example.the result and the process really looks awesome!
i have searched quite a while for how to retrieve an output data outside the Runscript but never found one, but you gave a good example of how to do that.
you just made my day.
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