Scripting extends Rhino functionality.
All Rhino commands can be used in command macros. Command macros can be run by typing the command at the command prompt, from toolbar buttons, shortcut keys, command aliases, from the ReadCommandFile command, or using the Paste command into Rhino's command stream.
Some commands are provided to facilitate scripting actions usually performed through the Rhino interface.
Cancel the current command and deselects objects.
Removes objects or sub-objects.
Turn on echoing of script commands to the command history window.
Edit a Python script.
Open a text editor utility for editing RhinoScript files.
Simulate the Enter key in a script.
Simulate the Enter key to complete a command string in a script.
Retrieve text information attached to a file with the SetDocumentUserText command.
Retrieve text information attached to an object using the SetUserText command.
Open an edit window for script creation and testing.
Turn off echoing of script commands to the command history window.
Stop a script for user input.
Read and execute a command script from a text file.
Run another application from inside Rhino.
Run a Python script.
Run a RhinoScript.
Specify a rendering plug-in.
Specify a viewport display mode.
Attach text information to the file.
Assign a name to an object.
Disable screen redraw, construction plane, and view changes during scripts.
Enable screen redraw, construction plane, and view changes during scripts.
Attach text information to an object.
Specify the default folder for saving and opening files.
Bring a viewport to the front.
Clear the undo buffer to free memory.
Close the render display window.
Close the active viewport.
Manage the display of the command prompt window.
Copy the image in the render window to the Clipboard.
Open the Document Properties dialog box at the specified page.
Maximize the Rhino application window.
Maximize the active viewport.
Create a new free-floating viewport.
Create a new viewport.
Activate the next viewport with an orthogonal projection.
Activate the next viewport with a perspective projection.
Activate the next viewport.
Display the next viewport in front of all other viewports.
Restrict cursor movement to an angle.
Set the angle for cursor ortho movement.
Open the Options dialog box at a specified page.
Activate the previous viewport.
Send a named viewport behind all viewports.
Open the Properties dialog box at a specified page.
Activate a named viewport.
Maximize a named viewport inside the application window.
Turn ortho mode on, off, or toggle the current state.
Turn Planar mode on, off, or toggle the current state.
Turn grid snap on, off, or toggle the current state.
Turn the Osnap control on.
Toggle the current snap mode state.
Specify the grid snap spacing.
Assign texture names to objects.
Evaluate texture coordinates and set vertex colors.
Command Macros and Scripting
Rhinoceros 7 © 2010-2022 Robert McNeel & Associates. 28-Sep-2022