How to set enabled a plugin automatically

I developed a Rhino plugin that is available in food4Rhino.
When someone installs it does not happen anything.
User must open Rhino Options and set enabled the installed plugin.


Is it possible to do something in the plugin development so that when installing the plugin it is automatically enabled ?
Is it normal that when a plugin is installed user must to set enabled the plugin?
Thanks

Here’s what you’d need to do (C# version)- two lines to add and define the value of a property.

Edit to add: this setting will cause it to load+enable when Rhino opens. For a lot of plugins, that isn’t necessary. As an example, a plugin that doesn’t do anything until the user enters a plugin command on the command line shouldn’t need to force enable itself. I only do it because of some Rhino peculiarities with respect to user object selection.

1 Like

Unrelated to this problem: Does the plug-in work in Rhino 8?

Thanks for your answer

We have not yet tested our plugin in Rhino 8

In my case, my plugin sometimes is loaded automatically and other times not.
I hope, that your proposal makes sure that my plugin is loaded automatically

It seems reliable for me so far in Rhino 7 and 8 and is a documented feature so if it doesn’t work then report it as a bug.

There does seem to be an issue with a few plugin aspects in which Rhino almost seems to remember a previous state even after you change something like this or the icon, but I’ve only seen that on the developer machine not on a clean install.

Y added the following lines:


I created a distribution package with yak and I pushed it to food4rhino with yak too.

However I already have the same problem.

Reading back… this sets what’s supposed to happen when Rhino loads.

I haven’t tested what happens immediately upon install.

I think these are the only settings we have for controlling loads.

And as I said, I think I’ve seen some oddness on my dev machine regarding that and a few other properties, almost as if Rhino remembers what the old setting was.

PlugIn.LoadTime property (rhino3d.com)
PlugIn.LoadTime property (rhino3d.com)

If it’s broken, I’d also be interested in a solution.

1 Like

Thanks another time for your answers.

I would like to edit my plugin description to advise the users about how they can enable the plugin.
But now I do not find any option to edit this information

I haven’t used food4rhino yet but my assumption was that it would either:

  1. allow you to edit things like description when you logged in
    or
  2. took them from the manifest file (yml) inside the YAK package so that if you uploaded a new version that would automatically update.

If neither of those two are the answer, then I have the same question you do for the devs.

YML example:

---
name: Xray
version: 1.0
authors:
- Falcata Group
description: >-
  Detailed information about selected objects:
        Dimensions, volume/surface area/length, degree of curves/surfaces,
        and more plus easy copy/paste of those values into other tools such as
        MS Excel.
url: https://falcatagroup.com
1 Like

Thanks, I have edited the information of my plugin in food4rhino.

It seems, that it works well. Thanks again