Rhino for Mac - drag/drop install for .YAK files?

Hi Guys,

Is drag/drop or similar install available for .YAK files on Rhino for MacOS? Or is there another procedure?

Cheers

DK

OK - further to this.

I have a Rhino Plugin that it is a mix of Python (launcher commands) and Grasshopper (running headless) code.

On Windows I can use the Script Compiler to create a .YAK file that packages up the four files + add a .RUI for a custom menu to allow the user to launch the application they would like to use.

The Windows GH applications use a HumanUI interface, which is not MacOS compatible, so I’ve been working on a ETO.Webview/HTML/CSS based UI that is now working cross platform:

The goal is to have try and have a single code base/YAK file that can be installed on either OS.

SO, it looks like I have two issues to solve on the MacOS side:

1/ Above mentioned Drag/Drop install using a .YAK file - best I have found so far is this guide:

Which creates a .macrhi file, which looks very much like a .YAK in contents - is there plans to move to .YAK as the standard file in the future? Or is it best practice right now to create a macrhi for Rhino for Mac?

2/ Custom toolbars - in Windows as long as I put a .RUI file with the same name in the .YAK it will install a custom menu at the same time as the plugin.

I’ve been able to convert my .RUI to a Palette file using this guide:

Rhino - Loading Tool Palettes (Mac).

But the end of the guide only has a way to include the palette using Visual Studio for Mac? Is there a way to use palettes with the Script Compiler/.YAK files?

I’ve got this feeling now that tho I can create a Rhino for Mac compatible plugin, the actual delivery/install might not be a great experience for the user with the current tools?

Cheers

DK

So I was able to get my YAK file to drag/drop install onto the Rhino icon in the task bar:

  • Rename .YAK to .ZIP
  • Unzip this file
  • Add .rhp to the unzipped folder name
  • ZIP this folder up
  • rename from .ZIP to .macrhi

The resulting file will install as Rhino Plugin, no Menu items or Toolbars however - can only launch from the command line - which feels VERY not the Apple way…

Does lead to the question - can the Script Compiler be updated to create this file for me if I set the target to Rhino for Mac?

Cheers

DK

Hi Team - any input here? What have I missed!

Cheers

DK

Hi @kiteboardshaper,

Drag and drop of .YAK packages works in the Rhino 8 WIP, but not in Rhino 7.

If you are in Rhino, you can install a local package by scripting the PackageManager command:

_-PackageManager _Install <filename>

– Dale