使用脚本
脚本扩展了Rhino功能。
几乎所有 Rhino 的指令都可以使用指令巨集执行,指令巨集可以由指令行输入、工具列按钮、快捷键、指令别名、以 ReadCommandFile 指令或将指令巨集以 Paste 指令粘贴至 Rhino 的指令行执行。
下面这些指令可以简化通过 Rhino 界面来执行脚本时的操作。
专门用于脚本的指令
操作

Cancel
Cancel the current command and deselects objects.

Delete
Removes objects or sub-objects.

Echo
Turn on echoing of script commands to the command history window.

EditPythonScript
Edit a Python script.

EditScript
Open a text editor utility for editing RhinoScript files.

Enter
Simulate the Enter key in a script.

EnterEnd
Simulate the Enter key to complete a command string in a script.

GetDocumentUserText
Retrieve text information attached to a file with the SetDocumentUserText command.

GetUserText
Retrieve text information attached to an object using the SetUserText command.

MacroEditor
Open an edit window for script creation and testing.

NoEcho
Turn off echoing of script commands to the command history window.

Pause
Stop a script for user input.

ReadCommandFile
Read and execute a command script from a text file.

Run
Run another application from inside Rhino.

RunPythonScript
Run a Python script.

RunScript
Run a RhinoScript.

SetCurrentRenderPlugIn
Specify a rendering plug-in.

SetDisplayMode
Specify a viewport display mode.

SetDocumentUserText
Attach text information to the file.

SetObjectName
Assign a name to an object.

SetRedrawOff
Disable screen redraw, construction plane, and view changes during scripts.

SetRedrawOn
Enable screen redraw, construction plane, and view changes during scripts.

SetUserText
Attach text information to an object.

SetWorkingFolder
Specify the default folder for saving and opening files.
界面

BringViewportToTop
Bring a viewport to the front.

ClearUndo
Clear the undo buffer to free memory.

CloseRenderWindow
Close the render display window.

CloseViewport
Close the active model or layout viewport.

CommandPrompt
Manage the display of the command prompt window.

CopyRenderWindowToClipboard
Copy the image in the render window to the Clipboard.

DocumentPropertiesPage
Open the Document Properties dialog box at the specified page.

Exit
Close Rhino.

Maximize
Maximize the Rhino application window.

MaxViewport
Maximize the active viewport.

NewFloatingViewport
Create a new free-floating viewport.

NewViewport
Create a new viewport.

NextOrthoViewport
Activate the next viewport with an orthogonal projection.

NextPerspectiveViewport
Activate the next viewport with a perspective projection.

NextViewport
Activate the next viewport.

NextViewportToTop
Display the next viewport in front of all other viewports.

Ortho
Restrict cursor movement to an angle.

OrthoAngle
Set the angle for cursor ortho movement.

OptionsPage
Open the Options dialog box at a specified page.

PrevViewport
Activate the previous viewport.

PushViewportToBack
Send a named viewport behind all viewports.

PropertiesPage
Open the Properties panel at a specified page.

SetActiveViewport
Activate a named viewport.

SetMaximizedViewport
Maximize a named viewport inside the application window.

SetOrtho
Turn ortho mode on, off, or toggle the current state.

SetPlanar
Turn Planar mode on, off, or toggle the current state.

SetSnap
Turn grid snap on, off, or toggle the current state.

ShowOsnap
Show the Osnap panel.

Snap
Toggle the current snap mode state.

SnapSize
Specify the grid snap spacing.
导入/导出

AssignBlankTexture
Assign texture names to objects.

ComputeVertexColors
Evaluate texture coordinates and set vertex colors.