In several instances I ran into a problem where I need to change some of the Advanced Options via script during script runtime (and then restore them). Based on @stevebaer’s sample, the setting can be changed like this:
import Rhino settings = Rhino.PlugIns.PlugIn.GetPluginSettings(Rhino.RhinoApp.CurrentRhinoId, False) s = settings.GetChild("Options").GetChild("General") s.SetBool("MiddleMouseViewManipulationMode",False)
The problem is, this only works after the script ends and I really need to make it work while the script is still running. Otherwise it kind of defeats the purpose of being able to access it.
I have tried using
RaiseOnPlugInSettingsSavedEvent() but I can’t make it work.
Any suggestions how to effectively have these settings changed and updated while the script code is running ?