![]() Note that the above two procedures for running scripts with aliases can also be done from toolbar buttons, just paste what you would for the alias into a new toolbar button. ![]() Now in Options>Aliases, you can create your aliases without the full path, just the name will work: In Tools>Options>Files tab, set a path to the folder you just created, then OK.Open the Python script editor with the _EditPythonScript command.Create a folder somewhere for all your Python scripts.Your script should then run when you type the alias and Enter. (Path example: "C:\Users\\Documents\Myscripts\TestScript.py") In Options>Aliases, create a new alias with the following:.First, save the script somewhere known.When you click the button, the script should run. ![]() In the button editor that opens, in the "Command area, type the following: ! _-RunPythonScript ( Right-click in a blank space in any toolbar and choose “New Button”. To run a python script (*.py) from a toolbar button: First, here is some basic info from the Rhino developer docs.įollowing are some more detailed instructions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |