Dear McNeel-Team - is it still possible to start Rhino3d v6 with different schemes ?
using Rhino Version 6 SR22
(6.22.20028.13281, 28/01/2020)
i tried to set up 2 schemes - one loading Rhinocam 2019, one - the Default without loading Rhinocam following this 2 year old post: - but it did not work for me:
thanks pascal for your fast answer - yes both schemes load the same plug-in setting - if i turn of in one scheme - both schemes do not load it - if i turn it on in one scheme - both load it -
seams like the plug-in enable-State is not saved in the scheme ;- (
loadprotection = 1 -> plug in will load
loadprotection = 2 -> plug in will not load
but did not find any documentation about it ;-/
ok i come up with the following: setting the registry seams to work very well - and without starting rhino:
i use a small console - app c# - no rhinocommon:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32;
namespace SetRegistryKey
{
// small Programm to set a rhino-registry-key to load / not load a pluginin
// pass plugin-Guid and
class Program
{
// args[0] -> plugin Guid
// args[1] -> "1" -> load plugin "2" do not load plugin
static void Main(string[] args)
{
if (args.Length == 2 &&
(Guid.TryParse(args[0], out _)) &&
(int.TryParse(args[1],out _)))
{
string keyName = @"HKEY_CURRENT_USER\Software\McNeel\Rhinoceros\6.0\Global Options\Plug-ins\" + args[0]; // + "\\" + "LoadProtection";
Registry.SetValue(keyName, "LoadProtection", args[1]);
} else
{
Console.WriteLine("Bad Arguments");
Console.WriteLine("Press any key to quit");
Console.ReadKey();
}
}
}
}
i call this app via a shortcut, and the shortcut is including the parameters:
plugin-Guid and 1or2
for example for Rhinocam 2019:
Shortcut Target to disable is: "C:\Program Files\Rhino 6\Plug-ins\SetRegistryKey.exe" 299f02bc-3538-4343-aca5-d66aaaeb789b 2
Shortcut Target to enable is: "C:\Program Files\Rhino 6\Plug-ins\SetRegistryKey.exe" 299f02bc-3538-4343-aca5-d66aaaeb789b 1
for me this works very well. best from zurich - tom