What determines the order of buttons in a toolbar?

Hey guys!

As the title suggested - what determines the order of buttons in a toolbar and how this can be modified? I created, with the help of the new Rhino8 Scripteditor, a Rhino Package with some commands/buttons but I can’t figure out how to manipulate the files, so I can display my commands in order, (before the package manager install). Any idea?

Greetings,
Leon

Future Leon to the rescue! I figured it out.

  • The order of Buttons of a Script Editor built package is defined in the *.rhproj file.
  • When a Command is added, the responding code lines are added into the *.proj file.
  • If the user modifies the package toolbar in Rhino (which I accidently did) a custom .xml is created in the \AppData\Roaming\McNeel\Rhinoceros\8.0\settings\Scheme__Default folder.
  • It overwrites the default toolbar scheme.
  • There it stays the till the end of times - doesn´t matter if you deinstalled/ updated the package. (Perhaps this behavior should be rethought)

The solution was to delete this xml file manually. After a Rhino restart - the button order,which I defined in the *.rhproj, was back.