Grasshopper

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,

Views: 380

Attachments:

Replies to This Discussion

It is because of a minor mistake in the way you used if/else condition. Check the attached file...

Attachments:

Thanks a lot! It is a part of the full code.

I need to look at how it works in the full code.

Many thanks,

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service