I’m trying to use a skin in my plug-in, but i’m facing a couple of problems.
First, I followed all the steps in the different topics and examples and I have managed to get it working in Rhino 64bit, but not in 32 that is my real target.
I have noticed that in the registry, in HKEY_LOCAL_MACHINE, Rhino only creates an entry for “5.0x64”, but not for “5.0”, like it does in “HKEY_CURRENT_USER” for example, so I can only set the “SkinDLLPath” in the “5.0x64”.
I tried to manually create a “5.0” entry and set the “SkinDLLPath” there too, but didn’t worked.
The other doubt I have is concerning the PersistentSettings. If I want my plug-in to be launched with a particular set of options, do I have to modify these settings in the registry entry for my scheme? or can I use the PersistentSettings class in someway to achieve this? If not, what can I use this class for?
Rhino stores persistent settings in “Scheme” keys found in HKEY_CURRENT_USER (for the currently logged in user). If you want your plug-in launched with a set of settings, then you plug-in should recognize the first time it is loaded, in a particular scheme, and then set whatever settings are required.
The problem arises when the skin doesn’t exist in the installation. I create only the folders and keys needed for the parameters I want to change in the current user. These are: