I had an idea to store some settings about my plugin commands in these keys, because there is already plugin key there. It seemed convenient, but I’ve abandoned that idea already
I made my own sub folder inside %appdata% folder to store all the info, This came up to be even better because I can store whatever I want there
I was hoping to get “path flexibility” between different PCs with using Rhino plugins path in registry
I just hope %appdata% path will be flexible enough when somebody else uses my plugin ( different windows version )
I made this initialization script in rhinoscript and included it in my plugin as “library” type so it is run before any of my commands,
Since the plugin compiler does not accept python scripts as “library” type , rhinoscript was good choice for the path initialization
Here is a vbs snippet I found, if anybody needs it:
Set objWShell = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
appData = objWShell.expandEnvironmentStrings("%APPDATA%")
If Not fso.FolderExists(appData + "\Plugin folder") Then
fso.CreateFolder appData + "\Plugin folder"
PluginPath = appData + "\Plugin folder"
Set objWShell = Nothing