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 AmbientOcclusion: boolean

Whether ambient occlusion is enabled.

RenderingOptionsData.AmbientOcclusion


readonly AmbientOcclusionColor: Color | undefined

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

RenderingOptionsData.AmbientOcclusionColor


readonly AmbientOcclusionDistance: number

The maximum distance at which ambient occlusion is computed.

RenderingOptionsData.AmbientOcclusionDistance


readonly AmbientOcclusionIntensity: number

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

RenderingOptionsData.AmbientOcclusionIntensity


readonly AmbientOcclusionMultiplier: number | undefined

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

RenderingOptionsData.AmbientOcclusionMultiplier


readonly BackgroundColor: Color

The sky background color when no sky texture is active.

RenderingOptionsData.BackgroundColor


readonly BandColor: Color

The color of the horizon band between sky and ground.

RenderingOptionsData.BandColor


readonly ConstructionColor: Color

The color used to draw construction lines and points.

RenderingOptionsData.ConstructionColor


readonly DepthQueWidth: number

Line width for depth cueing — thicker lines appear closer.

RenderingOptionsData.DepthQueWidth


readonly DisplayColorByLayer: boolean

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

RenderingOptionsData.DisplayColorByLayer


readonly DisplayDims: boolean

Whether dimension entities are shown.

RenderingOptionsData.DisplayDims


readonly DisplayFog: boolean

Whether fog is shown in the viewport.

RenderingOptionsData.DisplayFog


readonly DisplayInstanceAxes: boolean

Whether component instance axes are shown.

RenderingOptionsData.DisplayInstanceAxes


readonly DisplaySectionCuts: boolean

Whether section cut geometry is shown.

RenderingOptionsData.DisplaySectionCuts


readonly DisplaySectionPlanes: boolean

Whether section plane handles are shown in the viewport.

RenderingOptionsData.DisplaySectionPlanes


readonly DisplaySketchAxes: boolean

Whether the sketch axes are shown in the viewport.

RenderingOptionsData.DisplaySketchAxes


readonly DisplayText: boolean

Whether text entities are shown.

RenderingOptionsData.DisplayText


readonly DisplayWatermarks: boolean

Whether watermark images are shown in the viewport.

RenderingOptionsData.DisplayWatermarks


readonly DrawBackEdges: boolean

Whether edges behind opaque faces are shown as dashed lines.

RenderingOptionsData.DrawBackEdges


readonly DrawDepthQue: boolean

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

RenderingOptionsData.DrawDepthQue


readonly DrawGround: boolean

Whether the ground plane is shown.

RenderingOptionsData.DrawGround


readonly DrawHidden: boolean

Whether hidden geometry is shown as dashed lines.

RenderingOptionsData.DrawHidden


readonly DrawHorizon: boolean

Whether the horizon line is shown.

RenderingOptionsData.DrawHorizon


readonly DrawLineEnds: boolean

Whether line endpoints are drawn as dots.

RenderingOptionsData.DrawLineEnds


readonly DrawProfilesOnly: boolean

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

RenderingOptionsData.DrawProfilesOnly


readonly DrawSilhouettes: boolean

Whether silhouette edges are drawn with a thicker line.

RenderingOptionsData.DrawSilhouettes


readonly DrawUnderground: boolean

Whether geometry below the ground plane is visible.

RenderingOptionsData.DrawUnderground


readonly EdgeColorMode: EdgeColorMode

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

RenderingOptionsData.EdgeColorMode


readonly EdgeDisplayMode: EdgeDisplayMode

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

RenderingOptionsData.EdgeDisplayMode


readonly EdgeType: EdgeType

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

RenderingOptionsData.EdgeType


readonly ExtendLines: boolean

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

RenderingOptionsData.ExtendLines


readonly FaceBackColor: Color

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

RenderingOptionsData.FaceBackColor


readonly FaceFrontColor: Color

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

RenderingOptionsData.FaceFrontColor


readonly FogColor: Color

The color of the fog effect.

RenderingOptionsData.FogColor


readonly FogEndDist: number

The distance at which fog reaches full opacity.

RenderingOptionsData.FogEndDist


readonly FogStartDist: number

The distance at which fog begins.

RenderingOptionsData.FogStartDist


readonly FogUseBkColor: boolean

Whether fog uses the background color instead of FogColor.

RenderingOptionsData.FogUseBkColor


readonly ForegroundColor: Color

The edge color used when EdgeColorMode is Foreground.

RenderingOptionsData.ForegroundColor


readonly GroundColor: Color

The color of the ground plane.

RenderingOptionsData.GroundColor


readonly GroundTransparency: number

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

RenderingOptionsData.GroundTransparency


readonly HideConstructionGeometry: boolean

Whether construction lines and points are hidden.

RenderingOptionsData.HideConstructionGeometry


readonly HighlightColor: Color

The color used to highlight selected entities.

RenderingOptionsData.HighlightColor


readonly HorizonColor: Color

The color of the horizon line where sky meets ground.

RenderingOptionsData.HorizonColor


readonly InactiveFade: number

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

RenderingOptionsData.InactiveFade


readonly InactiveHidden: boolean

Whether geometry outside the current edit context is hidden entirely.

RenderingOptionsData.InactiveHidden


readonly InstanceFade: number

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

RenderingOptionsData.InstanceFade


readonly InstanceHidden: boolean

Whether component instances outside the edit context are hidden.

RenderingOptionsData.InstanceHidden


readonly JitterEdges: boolean

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

RenderingOptionsData.JitterEdges


readonly LineEndWidth: number

Width of line endpoints in pixels when DrawLineEnds is on.

RenderingOptionsData.LineEndWidth


readonly LineExtension: number

How far lines extend past their endpoints in pixels.

RenderingOptionsData.LineExtension


readonly LockedColor: Color

The color used to indicate locked geometry.

RenderingOptionsData.LockedColor


readonly MaterialTransparency: boolean

Whether material transparency is rendered.

RenderingOptionsData.MaterialTransparency


readonly ModelTransparency: boolean

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

RenderingOptionsData.ModelTransparency


readonly options: Map<string, AttributeValue>

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


readonly RenderMode: RenderMode

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

RenderingOptionsData.RenderMode


readonly SectionActiveColor: Color

The color of active section plane lines.

RenderingOptionsData.SectionActiveColor


readonly SectionCutDrawEdges: boolean

Whether edges are drawn on section cut faces.

RenderingOptionsData.SectionCutDrawEdges


readonly SectionCutFilled: boolean

Whether section cut faces are filled with a solid color.

RenderingOptionsData.SectionCutFilled


readonly SectionCutWidth: number

The line width of section cut edges in pixels.

RenderingOptionsData.SectionCutWidth


readonly SectionDefaultCutColor: Color

The default color of section cut lines.

RenderingOptionsData.SectionDefaultCutColor


readonly SectionDefaultFillColor: Color

The default fill color for section cut faces.

RenderingOptionsData.SectionDefaultFillColor


readonly SectionInactiveColor: Color

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

RenderingOptionsData.SectionInactiveColor


readonly ShowViewName: boolean

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

RenderingOptionsData.ShowViewName


readonly SilhouetteWidth: number

The line width for silhouette/profile edges in pixels.

RenderingOptionsData.SilhouetteWidth


readonly SkyColor: Color

The sky color shown above the horizon.

RenderingOptionsData.SkyColor


readonly Texture: boolean

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

RenderingOptionsData.Texture


readonly TransparencySort: TransparencySort

The algorithm used to sort overlapping transparent faces.

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