Grasshopper

algorithmic modeling for Rhino

Hello,

what method can I use to organize custom component in the menu, icon order and separators ?

thx

Views: 1037

Replies to This Discussion

Hi raf,

When you construct your component, you need to specify a Category and Subcategory. The Category becomes the Tab and the SubCategory the Panel. Furthermore you can override the Exposure property of your component and return something other than GH_Exposure.primary. Every exposure ends up in a different panel section. However within a section the order is alphabetical and there's nothing you can do about that.

If you combine a GH_Exposure.primary, secondary etc. with the GH_Exposure.obscure flag then you indicate the component should only be available on the panel dropdown. However this value is ignored if the user has the 'Obscure Components' option enabled.

Finally, if you want to not show your component on the toolbars at all, then use GH_Exposure.hidden.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

thx! :)

Hi David,

Trying to build a ghost component/ menu button(?) that registers certain events only, without necessarily appearing anywhere. Any documentation on how to go about that?  The goal is to have a single instance of my component instantiated upon a grasshopper document being started.

Any input is appreciated! 

Thanks in advance,

Marco

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service