In another question on the forum, I asked if anyone knew how to implement a simple solver that could modify an input to achieve the desired output, in my case a volume. Galapagos was suggested as a solution - and to some extent it works, but is overkill for my solution.
This could be almost trivial to do in Python, but there is a big problem: If I feed the output of my GH script as an input to my ghPython component, and then feed the output of the python script to modify the geometry, Grasshopper detects that the object is self-referencing, and won’t run, even if my script does nothing but output a fixed input.
Has anyone found a way to hide this feedback loop from grasshopper? Obviously this requires careful coding of the ghPython component, since there is a real chance of an infinite loop, but that is my problem to solve, isn’t it?
An alternative would be to have a “by-ref” wire that passes a reference to the object itself, not a value, so one could get and set values of the objects from within python code… Would be fun, but would have to wait for GH2…