[Python] Add Start Up Script?

I would like to add a script to the list of startup scripts. Is it possible to do that in python? Or rs.Command()? I noticed RhinoScript has Rhino.AddStartUpScript(), but I couldn’t find anything for python.

Thanks in advance!

The only way I know how to do this in Python is to store the script(s) somewhere and then create an alias for each one. Then put the aliases in the startup commands box.

3 Likes

@webdunce - this is on the wish list.

https://mcneel.myjetbrains.com/youtrack/issue/RH-80862

– Dale

Hi Helvetosaur,

Yes. You gave me this tip in another thread, and it works wonderfully to make python and grasshopper load without delay. It is so cool to watch grasshopper open immediately because the components were pre-loaded.

But I make a set of scripts that I sell (and some I offer for free), and it has a toolbar with both python and grasshopper scripts and I would like for the people who use my kit to also not experience a delay on the first time they click on an icon. So, I’d like to use python to programmatically add the alias in there for people that install my kit (I have a little installation script for it). I thought of adding instructions on how to do it in the installation guide, but I’m worried some less-experienced users might unintentionally change pre-existing aliases that might already be there.

OK, Dale. No biggie. Thanks for letting me know.