Grasshopper

algorithmic modeling for Rhino

 I'm new to this, so apologies in advance. I realize what I'm asking must be common knowledge.

I want to script a Python Gh component so that it takes control of a slider, a panel,or any other component on my Gh canvas. Such slider, panel or component cannot be connected to my Python component either as input or output.

One reason I need this (among others) is because I want to achieve looping, or recursion, inside my Gh model.

How do I get the slider, pannel.. identifier? I know how to get the identifiers for Rhino geometry objects, by acessing rhinoScriptSyntax. Can I do something similar with the Gh components in my model?

Any hint would be greatly appreciated.

Views: 580

Replies to This Discussion

One approach is to iterate the objects on the GH canvas and identify objects by type and name. And then set their properties. Like so:

Attachments:

Thanks! That helped a lot.

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