Grasshopper

algorithmic modeling for Rhino

Hi,

I have released some small Custom Component for GH.

What I want to know is...

Can I assign Position of Component in Panel??

I want to change those two Component to right and to left.

Is it possible?? If yes, how can I do it?

Views: 1031

Attachments:

Replies to This Discussion

Hi Kwon,

items are sorted alphabetically by their name. It is however possible to put the components in different exposures. Override the Exposure property and return GH_Exposure.primary for the components you want to put along the left hand side, and GH_Exposure.secondary for the next column over and so on and so forth. By default all components are in the primary column.

At the moment there are seven possible exposure columns (primary, secondary, ternary, quarternary, quinary, senary and septenary). If you combine one of these columns with the GH_Exposure.obscure flag, the components will only be visible in the dropdown panel.

Public Overrides ReadOnly Property Exposure() As GH_Exposure
  Get
    Return GH_Exposure.primary
  End Get
End Property

or...

Public Overrides ReadOnly Property Exposure() As GH_Exposure
  Get
    Return GH_Exposure.primary Or GH_Exposure.obscure
  End Get
End Property

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thank you :D

- Is it possible to change the order within the same exposure? (or only alphabetical)

- Is it possible to change the order of panels in the same Tab?

Thanks!

Just a heads up for anyone using this in the future ternary is actually 

tertiary in GH_Exposure 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service