Grasshopper

algorithmic modeling for Rhino

Can a (Python) component draw a preview without having an output? Like a cluster when using "Preview Contents"?

Views: 762

Replies to This Discussion

One option is to use the CustomDisplay class to draw geometry within a script. Attached a basic example.

Attachments:

Yeah that second one is certainly an issue. Check out this thread on the subject. It should be possible to enable/disable a CustomDisplay depending on the status of the component preview. You can access this property like so: ghenv.Component.Hidden

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service