Grasshopper

algorithmic modeling for Rhino

Hi all!
I am making a few custom c# components. 
How can I insert split bar to subcategory of Panel in C#. There are any examples?

Thanks in advance!
Jinsoo Kim

Views: 1471

Replies to This Discussion

You need to assign a custom Exposure per component*. There are 7 different exposures (primary to septenary) you can choose from, and each exposure can be combined with the obscure flag which limits the component icon to dropdown lists only (unless the user has the 'Show Obscure Components' option enabled).

Ultimately, the hidden exposure means the component will not be available on the Tabs, or from the double-click search menu. It's usually applied for older versions of components which have become obsolete.

* Which means: override the Exposure readonly property on the GH_Component derived class.

Thank you for the reply David!

public override GH_Exposure Exposure    
{
get { return GH_Exposure.tertiary; }
}

https://apidocs.co/apps/grasshopper/6.8.18210/T_Grasshopper_Kernel_...

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