I have a plugin that is a collection of python scripts made into Rhino commands, and it relies on two scripts being run at startup to
start the plugin if its the first time that Rhino is being launched that day, and
to automatically open associated grasshopper files for these example Rhino/GH files we have.
These .rvb scripts are dead simple scripts that just call the appropriate plugin command ( a plugin .py script) in Rhino.
'Calls the command to open a GH file of the same name as 3DM file in same folder
Option Explicit
Sub SameName()
Dim commandName
commandName = "OpenAssociatedGhFile"
Call Rhino.Command(commandName, False)
End Sub
SameName
It would be great for us to completely move away from .rvb and have the option to run .py scripts at startup or the option to have Rhino commands run on startup
Thanks @dale - is it possible to add the commands to here with a python script? I’m hoping to automate this process so it can be deployed on all my colleagues’ computers.
Something similar to the below in rvb Rhino.AddStartupScript(filePath)