Plugin Installers (Mac)
macOS only

Warning
⚠️ The .macrhi format is no longer in active development. Please see the Package Manager instead.

It is presumed you have a plugin that successfully builds and runs already. If you are not there yet, see Your First Plugin (Mac).

Overview

Rhino for Mac does not (yet) have a Plugin Manager. However, installing plugins is very easy. You simply rename your plugin’s containing folder with an special extension (.rhp), compress the folder, and change the extension from .rhp.zip to .macrhi. Once this is done, you can double-click the archive and Rhino will launch and install the plugin. You can also drag the .macrhi onto the dock icon of a running instance of Rhino and it will install the plugin as well. You will, in any case, need to Quit an Restart Rhino for the plugin to activate.

Step-by-Step

  1. Locate your plugin folder in Finder. Let’s imagine our plugin is called HelloRhinoCommon and we have built it for ReleaseFind Plugin In Finder
  2. Single-click the name your plugin’s Release (or Debug) folder to Rename it. The new name should be your plugin assembly with a .rhp suffix. For example, if your plugin is called HelloRhinoCommon, rename the folder that contains this file HelloRhinoCommon.rhp
  3. You will be prompted to confirm this change. Click the “Add” button: Click Add
  4. The icon of the folder1 should now look like this… New Icon
  5. Archive the plugin folder. Right-click (option-click) the plugin .rhp folder you created in the previous step and select “Compress (your plugin name).” This creates a zip archive of the contents of the folder.
  6. Single-click the name of the new archive you created in step 5. This allows you to rename the archive.
  7. Change the extension from .rhp.zip to .macrhi.
  8. You will be prompted to confirm this change. Select the “Use .macrhi” button: Use rhi Extension
  9. Notice that the icon changes from a zip archive to a Rhino RHI: use_macrhi_confirm
  10. If Rhino for Mac is open, drag the .macrhi archive onto Rhino for Mac’s icon in the dock; OR:
  11. If Rhino for Mac is not currently open, double-click the .macrhi archive to launch and install the plugin… plugin_loaded
  12. Click OK then Quit and Restart Rhino. Your plugin should load.

Behind the Scenes

The .macrhi extension is a file extension associated with the Rhino for Mac application (both Rhinoceros.app and RhinoWIP.app). This extension denotes a “Rhino for Mac plugin installer.” Rhino for Mac knows that such files are actually .zip archives that need to be decompressed and copied into the user’s Library folder at the appropriate location, specifically the ~/Library/Application Support/McNeel/Rhinoceros/MacPlugIns/ folder2.

When Rhino for Mac launches, it searches the contents of the

~/Library/Application Support/McNeel/Rhinoceros/MacPlugIns/

folder scanning the sub-folders looking for .rhp files. When it finds such “file” (which are actually packages), Rhino for Mac attempts to load the assembly with the same name contained within this package. If it cannot load the plugin, it will show an error at launch time.

For uninstallation/removal instructions, please see Uninstalling Plugins (Mac).

User Library

By default, the User Library folder is hidden from view.

To make your Library visible in the Finder:

  1. In Finder, navigate to your Home (~) folder. You must be in your Home folder for this to work.
  2. Press Command+J to bring up the Finder View options dialog… finder_view_options
  3. Check the Show Library Folder check box. Now your Library should show up in the view. You may want to drag this folder to your Favorites area of the Finder sidebar for easy access later.

Maintaining Your Own Installer?

As explained above, when Rhino for Mac launches, it searches the contents of the:

~/Library/Application Support/McNeel/Rhinoceros/MacPlugIns/

folder scanning the sub-folders looking for .rhp files. When it finds such “file” (which are actually packages), Rhino for Mac attempts to load the assembly with the same name contained within this package. If you are maintaining your own installer, simply writing your plugin to this folder should be sufficient.

Version-Specific Installations

If you are maintaing your own installer, in Rhino 8 for Mac onward*, it is possible to register version-specific installations. To do this, your installer will need to create a MacPlugIns folder within the version folder that resides in:

~/Library/Application Support/McNeel/Rhinoceros/

For example, to register a plugin that only Rhino 8 will load, your installer should write to:

~/Library/Application Support/McNeel/Rhinoceros/8.0/MacPlugIns/YourPluginName

Package Manager
* Rhino 7’s package manager already supports version-specific (and even platform-specific) targets. See the Anatomy of a Package: Distributions section for more information.

Footnotes


  1. macOS (and Unix) has a special kind of folder that masquerades as a file. These are called “packages.” (Most apps found in /Applications/ are actually packages called “bundles”). You can access the contents in Finder by right-clicking on the package and selecting Show Package Contents↩︎

  2. Do not confuse this path with /Library/Application Support/McNeel/Rhinoceros/, which is the system-wide Library location. ↩︎