Skip to content

RenderingOptions

The visual display settings that control how a model looks in the SketchUp viewport.

Use it to read settings like render mode, background color, edge style, fog, and section cut colors. It’s useful for extensions that need to react to display changes — for example, showing a custom overlay only when textures are on, or adjusting UI to match the current render mode.

Get a snapshot with model.getRenderingOptions(). To stay in sync as the user changes display settings, use model.observeRenderingOptions().

let model = await SketchUpApi.getActiveModel();
let opts = await model.getRenderingOptions();
console.log(opts.BackgroundColor.toHex());
// => '#CCCCC9FF'
console.log(opts.RenderMode);
// => 2 (RenderMode.Flat)
// Turn the sky red
await model.updateRenderingOptions({
SkyColor: '#FF0000',
});
// Re-apply the current camera to force
// SketchUp to redraw immediately
let cam = await model.view.getCamera();
await model.view.setCamera(cam);

SDK 2.24.0 Protocol 1.21.0

readonly options: Map<string, AttributeValue>

The raw key-value map of all rendering options from SketchUp.

get AmbientOcclusion(): boolean

Whether ambient occlusion is enabled.

boolean

RenderingOptionsData.AmbientOcclusion


get AmbientOcclusionColor(): Color | undefined

The color tint applied to ambient occlusion shadows. Added in SketchUp 2026.

Color | undefined

RenderingOptionsData.AmbientOcclusionColor


get AmbientOcclusionDistance(): number

The maximum distance at which ambient occlusion is computed.

number

RenderingOptionsData.AmbientOcclusionDistance


get AmbientOcclusionIntensity(): number

The strength of the ambient occlusion effect, from 0 to 1.

number

RenderingOptionsData.AmbientOcclusionIntensity


get AmbientOcclusionMultiplier(): number | undefined

A multiplier applied to the ambient occlusion color. Added in SketchUp 2026.

number | undefined

RenderingOptionsData.AmbientOcclusionMultiplier


get BackgroundColor(): Color

The sky background color when no sky texture is active.

Color

RenderingOptionsData.BackgroundColor


get BandColor(): Color

The color of the horizon band between sky and ground.

Color

RenderingOptionsData.BandColor


get ConstructionColor(): Color

The color used to draw construction lines and points.

Color

RenderingOptionsData.ConstructionColor


get DepthQueWidth(): number

Line width for depth cueing — thicker lines appear closer.

number

RenderingOptionsData.DepthQueWidth


get DisplayColorByLayer(): boolean

Whether entities are colored by their tag instead of their own material.

boolean

RenderingOptionsData.DisplayColorByLayer


get DisplayDims(): boolean

Whether dimension entities are shown.

boolean

RenderingOptionsData.DisplayDims


get DisplayFog(): boolean

Whether fog is shown in the viewport.

boolean

RenderingOptionsData.DisplayFog


get DisplayInstanceAxes(): boolean

Whether component instance axes are shown.

boolean

RenderingOptionsData.DisplayInstanceAxes


get DisplaySectionCuts(): boolean

Whether section cut geometry is shown.

boolean

RenderingOptionsData.DisplaySectionCuts


get DisplaySectionPlanes(): boolean

Whether section plane handles are shown in the viewport.

boolean

RenderingOptionsData.DisplaySectionPlanes


get DisplaySketchAxes(): boolean

Whether the sketch axes are shown in the viewport.

boolean

RenderingOptionsData.DisplaySketchAxes


get DisplayText(): boolean

Whether text entities are shown.

boolean

RenderingOptionsData.DisplayText


get DisplayWatermarks(): boolean

Whether watermark images are shown in the viewport.

boolean

RenderingOptionsData.DisplayWatermarks


get DrawBackEdges(): boolean

Whether edges behind opaque faces are shown as dashed lines.

boolean

RenderingOptionsData.DrawBackEdges


get DrawDepthQue(): boolean

Whether depth cueing (line width that varies with distance) is enabled.

boolean

RenderingOptionsData.DrawDepthQue


get DrawGround(): boolean

Whether the ground plane is shown.

boolean

RenderingOptionsData.DrawGround


get DrawHidden(): boolean

Whether hidden geometry is shown as dashed lines.

boolean

RenderingOptionsData.DrawHidden


get DrawHorizon(): boolean

Whether the horizon line is shown.

boolean

RenderingOptionsData.DrawHorizon


get DrawLineEnds(): boolean

Whether line endpoints are drawn as dots.

boolean

RenderingOptionsData.DrawLineEnds


get DrawProfilesOnly(): boolean

Whether only silhouette/profile edges are drawn, hiding interior edges.

boolean

RenderingOptionsData.DrawProfilesOnly


get DrawSilhouettes(): boolean

Whether silhouette edges are drawn with a thicker line.

boolean

RenderingOptionsData.DrawSilhouettes


get DrawUnderground(): boolean

Whether geometry below the ground plane is visible.

boolean

RenderingOptionsData.DrawUnderground


get EdgeColorMode(): EdgeColorMode

How edge colors are determined — by object, foreground, or axis direction.

EdgeColorMode

RenderingOptionsData.EdgeColorMode


get EdgeDisplayMode(): EdgeDisplayMode

Which edges are drawn — all, standalone only, or none.

EdgeDisplayMode

RenderingOptionsData.EdgeDisplayMode


get EdgeType(): EdgeType

The edge drawing algorithm — standard (crisp) or sketchy (hand-drawn).

EdgeType

RenderingOptionsData.EdgeType


get ExtendLines(): boolean

Whether lines extend slightly past their endpoints for a hand-drawn look.

boolean

RenderingOptionsData.ExtendLines


get FaceBackColor(): Color

The default back-face color when no material is applied.

Color

RenderingOptionsData.FaceBackColor


get FaceFrontColor(): Color

The default front-face color when no material is applied.

Color

RenderingOptionsData.FaceFrontColor


get FogColor(): Color

The color of the fog effect.

Color

RenderingOptionsData.FogColor


get FogEndDist(): number

The distance at which fog reaches full opacity.

number

RenderingOptionsData.FogEndDist


get FogStartDist(): number

The distance at which fog begins.

number

RenderingOptionsData.FogStartDist


get FogUseBkColor(): boolean

Whether fog uses the background color instead of FogColor.

boolean

RenderingOptionsData.FogUseBkColor


get ForegroundColor(): Color

The edge color used when EdgeColorMode is Foreground.

Color

RenderingOptionsData.ForegroundColor


get GroundColor(): Color

The color of the ground plane.

Color

RenderingOptionsData.GroundColor


get GroundTransparency(): number

Transparency of the ground plane from 0 (opaque) to 100 (fully transparent).

number

RenderingOptionsData.GroundTransparency


get HideConstructionGeometry(): boolean

Whether construction lines and points are hidden.

boolean

RenderingOptionsData.HideConstructionGeometry


get HighlightColor(): Color

The color used to highlight selected entities.

Color

RenderingOptionsData.HighlightColor


get HorizonColor(): Color

The color of the horizon line where sky meets ground.

Color

RenderingOptionsData.HorizonColor


get InactiveFade(): number

Opacity of geometry outside the current edit context, from 0 to 100.

number

RenderingOptionsData.InactiveFade


get InactiveHidden(): boolean

Whether geometry outside the current edit context is hidden entirely.

boolean

RenderingOptionsData.InactiveHidden


get InstanceFade(): number

Opacity of component instances outside the current edit context, from 0 to 100.

number

RenderingOptionsData.InstanceFade


get InstanceHidden(): boolean

Whether component instances outside the edit context are hidden.

boolean

RenderingOptionsData.InstanceHidden


get JitterEdges(): boolean

Whether edges have a slight random offset for a hand-drawn look.

boolean

RenderingOptionsData.JitterEdges


get LineEndWidth(): number

Width of line endpoints in pixels when DrawLineEnds is on.

number

RenderingOptionsData.LineEndWidth


get LineExtension(): number

How far lines extend past their endpoints in pixels.

number

RenderingOptionsData.LineExtension


get LockedColor(): Color

The color used to indicate locked geometry.

Color

RenderingOptionsData.LockedColor


get MaterialTransparency(): boolean

Whether material transparency is rendered.

boolean

RenderingOptionsData.MaterialTransparency


get ModelTransparency(): boolean

Whether X-ray (model transparency) mode is enabled.

boolean

RenderingOptionsData.ModelTransparency


get RenderMode(): RenderMode

The face shading style — wireframe, flat, smooth, or PBR.

RenderMode

RenderingOptionsData.RenderMode


get SectionActiveColor(): Color

The color of active section plane lines.

Color

RenderingOptionsData.SectionActiveColor


get SectionCutDrawEdges(): boolean

Whether edges are drawn on section cut faces.

boolean

RenderingOptionsData.SectionCutDrawEdges


get SectionCutFilled(): boolean

Whether section cut faces are filled with a solid color.

boolean

RenderingOptionsData.SectionCutFilled


get SectionCutWidth(): number

The line width of section cut edges in pixels.

number

RenderingOptionsData.SectionCutWidth


get SectionDefaultCutColor(): Color

The default color of section cut lines.

Color

RenderingOptionsData.SectionDefaultCutColor


get SectionDefaultFillColor(): Color

The default fill color for section cut faces.

Color

RenderingOptionsData.SectionDefaultFillColor


get SectionInactiveColor(): Color

The color of inactive (non-current) section plane lines.

Color

RenderingOptionsData.SectionInactiveColor


get ShowViewName(): boolean

Whether the scene/view name is shown in the viewport.

boolean

RenderingOptionsData.ShowViewName


get SilhouetteWidth(): number

The line width for silhouette/profile edges in pixels.

number

RenderingOptionsData.SilhouetteWidth


get SkyColor(): Color

The sky color shown above the horizon.

Color

RenderingOptionsData.SkyColor


get Texture(): boolean

Whether textures are rendered. When false, materials show as flat colors.

boolean

RenderingOptionsData.Texture


get TransparencySort(): TransparencySort

The algorithm used to sort overlapping transparent faces.

TransparencySort

RenderingOptionsData.TransparencySort

refresh(): Promise<RenderingOptions>

Re-fetches the rendering options from SketchUp to pick up any changes made since this snapshot was taken.

Promise<RenderingOptions>


toString(): string

Returns a string representation of an object.

string