How to disable Grasshopper startup autosave recovery?

Hi all!
I have 7-8 .gh scripts opening at startup on a server machine.
I need the scripts running 24/7.
For each script, autosave option is unflagged, yet by copy-pasting the .gh files from a different machine Grasshopper keep “forgetting” the option and revert back to enable autosave.
(the files have autosave unflagged in the other machine, but after the copy in the this machine it is back on…)

If there is a machine reboot, for a windows update or blackout, at startup Grasshopper will not fully open the script but insteand hang here:


I need to setup a Rhino/Grasshopper to never ever use autosave function for .gh files and/or to never prompt this window again.

Any ways to achieve so?

Thanks in advance!

some thoughts,

  • create a .bat file that cleares the AutoSave directory right before Rhino starts, somethnng like this:
    del /q /s “%appdata%\Grasshopper\AutoSave\*.*”

  • Or edit the grasshopper_kernel.xml , maybe there are keys there related to AutoSave you can enable/ disable. Has these options:
    <item name="AutoSave:DataFlatten" type_name="gh_bool" type_code="1">true</item>
    <item name="AutoSave:Enable" type_name="gh_bool" type_code="1">false</item>
    <item name="AutoSave:ObjAdd" type_name="gh_bool" type_code="1">false</item>
    <item name="AutoSave:ObjGeneric" type_name="gh_bool" type_code="1">true</item>
    <item name="AutoSave:ObjRem" type_name="gh_bool" type_code="1">false</item>
    <item name="AutoSave:Unload" type_name="gh_bool" type_code="1">true</item>
    <item name="AutoSave:WireEvent" type_name="gh_bool" type_code="1">true</item>

  • maybe have a look at GH_SettingsServer.SetValue Method (String) maybe it is possible to add C# node in your script that runs first and does something like settings.SetValue(“AutoSave:Enabled”, false);

1 Like