The following methods provide access to Rhino's views and viewports. As the lines between what in Rhino is related to a "view" and what is related to a " viewport" can appear to be blurred, everything view or viewport related in RhinoScript is simply referred to as "view."
The majority of view-related methods require that you specify the name, or title, of the view that you want to query or modify. You can obtain a list of view names by using the ViewNames method. Because it is possible for a document to have two views with the same title, you can also specify a view by its identifier, or UUID. The ViewNames method will return a list of view identifiers if you specify the option bReturnNames argument as False.
Method |
Description |
Adds a named construction plane. |
|
Adds a named view. |
|
Returns or sets a view's background bitmap. |
|
Returns or changes the current detail view in a page layout view. |
|
Returns or sets the current view. |
|
Removes a named construction plane. |
|
Removes a named view. |
|
Deletes an advanced display mode. |
|
Returns the number of detail views in a page layout view. |
|
Exports an advanced view display mode. |
|
Imports an advanced view display mode. |
|
Verifies that a view has a background bitmap. |
|
Verifies that a detail view is on a page layout view. |
|
Verifies that a view is a page layout view. |
|
Verifies a view exists. |
|
Verifies a view is the current view. |
|
Verifies a view's window is maximized. |
|
Checks for views that are slightly out of plan. |
|
Verifies a view's projection is perspective. |
|
Verifies a view's title is visible. |
|
Verifies that a view has a wallpaper bitmap. |
|
Toggles a view's maximized/restore window state. |
|
Returns a named construction plane's geometry. |
|
Returns the name of all named construction planes. |
|
Returns the name of all named view. |
|
Renames a view's title. |
|
Restores a named construction plane. |
|
Restores a named view. |
|
Rotates a perspective view's camera. |
|
Rotates a view by an angle. |
|
Shows or hides a view's grid. |
|
Shows or hides a view's grid axes. |
|
Shows or hides a view's title. |
|
Shows or hides a view's world axes. |
|
Synchronizes all views to a particular view. |
|
Tilts a view by an angle. |
|
Returns or sets a view's camera location. |
|
Shows or hides the camera icon. |
|
Returns or sets a view's camera lens length. |
|
Returns the orientation of a view's camera. |
|
Returns or sets a view's camera and target locations. |
|
Returns or sets a view's camera up direction vector. |
|
Returns or sets a view's construction plane. |
|
Returns or sets a view's display mode. |
|
Returns or sets a view's display mode. |
|
Returns the identifier of a display mode given a display mode's name. |
|
Returns the name of a view display mode. |
|
Returns or modifies the property of a display mode. |
|
Returns a list of view display modes. |
|
Returns or sets a view's display mode to flat shaded. |
|
Returns all view names. |
|
Returns the corners of a view's near clipping plane rectangle. |
|
Returns or sets a view's projection. |
|
Returns a view-based, 2-D projection transformation. |
|
Returns or sets the radius of the viewing frustum of a parallel-projected view. |
|
Returns a view's window size. |
|
Tests Rhino's display performance. |
|
Returns or sets a view's target location. |
|
Returns the name, or title, of a view. |
|
Returns or sets a view's wallpaper bitmap. |
|
Returns or sets a view's wallpaper grayscale display. |
|
Returns or sets a view's wallpaper visibility. |
|
Zoom to the extents of a bounding box. |
|
Zoom to the extents of visible objects. |
|
Zoom to the extents of selected objects. |