Hello everyone,
I’m currently working on a Grasshopper project where I have a cluster with an input parameter “i1” and an output parameter “o1”. The goal is to iterate through the outputs of this cluster, passing the value of “o1” back to the input parameter “i1”, and repeating this process until the value of another output parameter “o2” becomes 1. Once “o2” reaches 1, I want the iteration to stop.
I’ve attempted to implement this logic using GhPython scripting, but I’m encountering challenges in setting up the iteration and breaking condition within the Grasshopper environment.
Could anyone provide guidance or suggest an approach on how to achieve this iteration process and breaking condition in Grasshopper?
Any help or insights would be greatly appreciated.
question2.gh (7.0 KB)