RenderResolution

Returns or sets the render resolution. Resolution is measured in pixels. See Rhino's DocumentProperties command (Rhino Render window) for details. Note, if the render resolution is set to "viewport", then the size of the active viewt is returned.

Syntax

rhinoscriptsyntax.RenderResolution (resolution=None)

rhinoscript.document.RenderResolution (resolution=None)

Parameters

resolution

Optional. Tuple or List.  Two numbers identifying the resolution width and height in pixels.

Returns

Tuple

If resolution is not specified, two numbers identifying the current resolution width and height in pixels if successful.

Tuple

If resolution is specified, two numbers identifying the previous resolution width and height in pixels if successful.

Example

import rhinoscriptsyntax as rs

sizex, sizey = rs.Viewsize()

resolution = sizex/2 , sizey/2

rs.RenderResolution( resolution )

Also See

RenderAntialias

RenderColor

RenderSettings