Grasshopper

algorithmic modeling for Rhino

how would you connect a boolean toggle to enable or inhibit a python component from running in Grasshopper?  In other words, what Python or rs. command would control whether or not the script runs?  Thanks

Views: 2248

Replies to This Discussion

You could use a simple if statement in the outer scope of the component code (see attached file). This won't stop the whole component from running though, you would have to figure out how to disable the component using the GH SDK to do that (or select the component and hit CTRL + E ;)

Attachments:

Dude! Thanks!

the "if" statement accomplishes my goals.  great simple logic.

Cool, glad that did the trick..

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service