ScriptEditor Commands order in a toolbar

When creating python command plugin via script editor, how can I define the order of button in a toolbar?

Hmm. I believe it should follow the order of commands in the project. I’m gonna look into this (You can also manually modify the .rui file but that’s not ideal)

1 Like

It seems to follow this order rather than order of scripteditor:

RH-84223 RUI Button Order for Published Plugins

1 Like

Thank you

1 Like

Hi @eirannejad,

i’m running into this issue frequently and have to add new commands to an existing PlugIn which should appear not as the last command but inbetween existing ones.

So far i have not found a way to control the order of the buttons in the generated rui despite editing the rhproj (json) file manually which feels cumbersome. Is this still on your radar or has there been something i missed to control the order ?

thanks,
c.

Currently is the only way…

I hope @eirannejad could implement this feature as soon as possible.

1 Like

Hi @eirannejad, after compiling a current project i would like to ask some followup questions:

  1. The ScriptEditor creates a ToolBar from the added commands which seems to get the tab icon from the first toolbar button command. Can i influence which icon this tab gets ?

  2. If i choose an icon for my PlugIn (in the upper right corner of the Build dialog), where is this Icon is used ? (It is not shown anywhere, maybe this could be used as the default ToolBar tab icon)

  3. Can i influence the default appearance when my PlugIn ToolBar is opened after installing my PlugIn ? (I would prefer to have it sized to it’s content in a single row…)

  4. Which software can i use to unzip the yak package so i can make post changes to the *.rui file ? (I’ve tried 7zip but it seems that once i zip und rename to yak, the package cannot be installed anymore).

thanks,
c.

@clement

  • Project icon (upper right corner of build) is used on the PluginManager screen, plugin Toolbar icon, and Grasshopper 1 tab icon if available.
  • Script editor auto-generates the RUI file. Currently there are no settings to make changes to its appearance but you can editor the file manually and repack
  • Yak file is just a normal zip file. Any zip (un)archiver can be used to pack a new yak package. Script editor leaves the files in the build directory so you just have to editor and pack. No need to unpack the generated .yak file
1 Like

Thank you @eirannejad, i’ve now found out why it did not use the Project icon as toobar tab icon, the user installed over an existing PlugIn without uninstalling first. Somehow Rhino used the old rui which the user had edited without saving it…

I’ll try to zip manually to get the toolbar size fixed.

thanks,
c.

1 Like

Perfect. Let me know how we can improve the experience on plugin publishing in script editor as well. I have a series of improvement tickets on my list but there are some of the highlights

  • RH-84542 Allow published commands or components to be editable optionally
  • RH-84490 Support multiple authors
  • RH-84223 RUI Button Order for Published Plugins
1 Like

Hi @eirannejad, one minor wish would be that it remembers the folder when choosing the command icons and that _PackageManager can use the Project icon too.

thanks,
c.

1 Like

Great. Added these two

  • RH-87729 Published packages should include icon for Yak package manager
  • RH-87730 Project icon selector to remember last folder
1 Like

Yes please, this and being able to add a full set of keywords in the manifest file and I’ll never need to manually edit a .yak again. This will save me so much time.

Cheers

DK

Not actually the case, I too have run into the issue of a YAK opened/edited/saved in a 3rd party ZIP tool failing to install

However, if you deliver all the features in this thread @eirannejad that problem is no longer a problem as I’ll never need to manually edit a .yak file again!

Cheers

DK