algorithmic modeling for Rhino
Hi All,
I have created my own .gha file, which includes several components in a sub-category. They are ordered alphabetically like this.
But, I want to create some lines to divide between the components like what's in geometry gym (figure below) or other plug-ins for easy use. Is there a way to do it?
Thanks!
Tags:
Override the Exposure property on your components and return Primary, Secondary, Tertiary etc.
Override the Exposure Property in all gh_components and set the order with the GH_Exposure Enum.
Public Overrides ReadOnly Property Exposure As GH_Exposure
Get
Return GH_Exposure.secondary
End Get
End Property
Hello Qi, you do that by assigning the component to a particular "exposure group": primary, secondary, tertiery, .... Components in different groups will be separated by the lines you see in the ribbon. By default, the component is automatically assigned to the "primary" group.
To assign your component to the secondary group for example, you just need to add the following property to your GH_Component class definition
public override GH_Exposure Exposure {
get
{
return GH_Exposure.secondary;
}
}
So the upper limit for the number of sections is seven (GH_Exposure.septenary) then?
Yup, no more than 7 sections per panel. You can combine Primary, Secondary etc. with the Obscure flag, which means components will only be visible on the dropdown list, not on the panels themselves.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by