I’d like to automate the loading of a custom alias file upon installing Rhino. Is there a default *.txt alias file I can locate and overwrite?
If not, or if this isn’t recommended, my plan B is to include a button in a custom RUI that would execute a simple load alias script like so:
# Load custom aliases import rhinoscriptsyntax as rs """Loads custom aliases into Rhino which correspond to custom RUI. If RUI button already has default Rhino alias it will be omitted. An alias can only reference a macro therefore scripts must be externally stored at a user modifiable directory C:\Users\%username%\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts and referenced via the LoadScript (*.rvb) or RunPythonScript (*.py) command. """ # basic macro sample for alias addition rs.AddAlias("A", "'_CPlane _World _Front") # external script macro sample for alias addition rs.AddAlias("B", "! _-RunPythonScript test.py")
Any feedback on this is much appreciated.