Hi guys!
I’m pretty new to writing code blocks in dynamo and I’ve really come to a dead end with what I’m trying to do. Basically I just want to create a for loop where a polycurve is being modified by a custom node that I have created for each iteration. Everything works fine except that I cannot overwrite the previous version of the polycurve in the new iteration. The result that I get makes sense if it was always the original polycurve that was being imputed to the function. My guess is that it has something to do with the scope of the variables, but i haven’t been able to figure out how to work around it.
I experimented a bit to make the problem more clear and with less variables. In the left picture, I would like to find a way to overwrite b without causing an error (i thing this is what the whole thing boils down to).
Thank you so much!