RenderSettings

Returns or sets render settings.  See Rhino's DocumentProperties command (Rhino Render window) for details.

Syntax

Rhino.RenderSettings ([intSettings])

Parameters

intSettings

Optional.  Number.  The render setting or settings to modify.  Render settings can be any combination of the following flags:

Value

Description

0

None.

1

Create shadows.

2

Use lights on layers that are off.

4

Render curves and isocurves.

8

Render dimensions and text.

Returns

Number

If intSettings is not specified, the current render settings if successful.

Number

If intSettings is not specified, the previous render settings if successful.

Number

Is not successful, or on error.

Example

Const rhRenderAnnotations = 8

Dim intSettings

intSettings = Rhino.RenderSettings

If intSettings & rhRenderAnnotations Then

intSettings = intSettings - rhRenderAnnotations

Rhino.RenderSettings intSettings

End If

Also See

RenderAntialias

RenderColor

RenderResolution