algorithmic modeling for Rhino
Hi all,
I am trying to translate a VB module to a Python module in grasshopper(Please have a look at attached the files).
From my understanding of the VB code, when Boolean is false, the VB module allocates a point and a point list to memory as its output. Then it use those when Boolean turns to True, and timer enables to loop the process .
But when it comes to Python, the logic is not working. When Boolean turns to True, the error message pops out and say " local variable referenced before assignment.". I guess it is because the data is not transferred from the preceding step, False condition, and I am stuck on this problem.
Is there anyone to know how to resolve this ? Please help.
Thanks,
Tags:
It is because of a minor mistake in the way you used if/else condition. Check the attached file...
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
© 2024 Created by Scott Davidson. Powered by