Script files to load when Rhino starts on Rhino 6


#1

Hi,

I need to add a couple of scripts to load when Rhino starts using my installer.
With Rhinoceros 5 I modify the windows registry more or less this way:
WriteRegStr “HKCU” “Software\McNeel\Rhinoceros\5.0x64\Scheme: Rhinojewel\Plug-ins\1c7a3523-9a8f-4cec-a8e0-310f580536a7\Settings\StartupFileList” “File0” "$INSTDIR\Scripts\init.rvb"
WriteRegStr “HKCU” “Software\McNeel\Rhinoceros\5.0x64\Scheme: Rhinojewel\Plug-ins\1c7a3523-9a8f-4cec-a8e0-310f580536a7\Settings” “StartupFileListCount” “1”

But it seems that Rhinoceros 6 is using other mechanism to save the list of script files to load when Rhino starts.

Is there a way to configure scripts files to load outside of Rhinoceros?

Thanks!


(Dale Fugier) #3

Hi @Jordi_Llonch

Rhino 6 no longer makes extensive use of the Windows Registry. Rather, it saves persistent settings to XML files in the user’s profile. This change includes plug-ins too.

For example, RhinoScript’s persistent settings, for the default scheme are stored in this location:

%APPDATA%\McNeel\Rhinoceros\6.0\Plug-ins\RhinoScript (1c7a3523-9a8f-4cec-a8e0-310f580536a7)\settings

And in this XML file.

settings-Scheme__Default.xml 

Thus, to add startup scripts for RhinoScript, you will need to modify this file.

Does this help?

– Dale


#4

Thanks for the information. I try to find the file but my C:\Users\jordi\AppData\Local\McNeel\Rhinoceros\6.0 folder is empty.

I’m using Version 6 (6.0.18016.23451, 16/01/2018)


#5

Ups, sorry. The right folder is C:\Users\jordi\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\RhinoScript (1c7a3523-9a8f-4cec-a8e0-310f580536a7)\settings.

Thanks for the help!