Hi, I am trying to develop a simple land use allocation script using python for an urban development project and I am getting the above error when I am trying to take the output of the script and allocate it to curves. The error comes up when I am trying to change the iteration. I am new to scripting so any help would be appreciated!
Could you please open and edit another grasshopper file while you have this open and then come back and try to change the iteration again? Sometimes it gives me the error after I do that.
I am not sure how this all precisely works, but to me it seems that the error happens because somehow your data gets stale (for lack of better understanding and wording). Once you get the error you can get back to working again by forcing the first python component in the definition to execute.
To ensure it gets always executed you could add a dummy input to it and connect your iterations slider to it. That will ensure your first python component (and everything after it) gets executed always ensuring good data in your lists.