i’d like to get a list of ALL the available commands. aliases, native, plugins…
i’ve got this snippet that lists plugin commands, easy to change?
import Rhino
plugins = Rhino.PlugIns.PlugIn.GetInstalledPlugIns()
for item in plugins:
id = item.Key
name = item.Value
print name
commands = Rhino.PlugIns.PlugIn.GetEnglishCommandNames(id)
for command in commands:
print " - ", command
import Rhino
aliases=Rhino.ApplicationSettings.CommandAliasList.GetNames()
for name in aliases:
macro=Rhino.ApplicationSettings.CommandAliasList.GetMacro(name)
print "Alias: {} | Macro: {}".format(name,macro)
all_rhino_commands=Rhino.Commands.Command.GetCommandNames(True,False)
for item in all_rhino_commands: print item
print "Total number of Rhino commands = {}".format(len(all_rhino_commands))