Grasshopper

algorithmic modeling for Rhino

hello,

I wrote several component with C# for grasshopper

I have three questions:

1. can I change the order of the component subcategory? for now the default order is by the abc. but it doesnt get along with the functionality...

2. when subcategory have few component, but the headline is long so you cant read it...

3. in the built in subcategorys I saw like seperation between component, is it possible for me as well? 


I added the icon screenshot to show the problems

Views: 558

Attachments:

Replies to This Discussion

Hi Gil,

you cannot change the alphabetic ordering, though you may be able to modify the sorting by prepending some invisible whitespace (such as tabs) to the name. However this is a hack and may have unexpected consequences.

The separators are achieved by assigning the component different GH_Exposure. Override the Exposure property and return one of the GH_Exposure enums. Primary, Secondary, ...., Septenary can be used to define in which block within a subcategory the icon appears, Hidden can be used to remove the icon from the toolbars, and Obscure along with Primary, Secondary, etc. can be used to only display the icon on the dropdown of each panel. Do note that both the separators and the Obscure flag may be ignored by Grasshopper if the user has picked non-default settings for the icon panels.

As for the names being too long for the panels, there's nothing you can do about that. I recommend not creating panels with less than 4 objects in them. I'd say you're better off using fewer panels and more separators.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service