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().
Example
Section titled “Example”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 redawait model.updateRenderingOptions({ SkyColor: '#FF0000',});
// Re-apply the current camera to force// SketchUp to redraw immediatelylet cam = await model.view.getCamera();await model.view.setCamera(cam);- RenderingOptionsData
- RenderMode
- Model.getRenderingOptions
- Model.updateRenderingOptions
- Model.observeRenderingOptions
SDK 2.24.0 Protocol 1.21.0
Implements
Section titled “Implements”Properties
Section titled “Properties”AmbientOcclusion
Section titled “AmbientOcclusion”
readonlyAmbientOcclusion:boolean
Whether ambient occlusion is enabled.
Implementation of
Section titled “Implementation of”RenderingOptionsData.AmbientOcclusion
AmbientOcclusionColor
Section titled “AmbientOcclusionColor”
readonlyAmbientOcclusionColor:Color|undefined
The color tint applied to ambient occlusion shadows. Added in SketchUp 2026.
Implementation of
Section titled “Implementation of”RenderingOptionsData.AmbientOcclusionColor
AmbientOcclusionDistance
Section titled “AmbientOcclusionDistance”
readonlyAmbientOcclusionDistance:number
The maximum distance at which ambient occlusion is computed.
Implementation of
Section titled “Implementation of”RenderingOptionsData.AmbientOcclusionDistance
AmbientOcclusionIntensity
Section titled “AmbientOcclusionIntensity”
readonlyAmbientOcclusionIntensity:number
The strength of the ambient occlusion effect, from 0 to 1.
Implementation of
Section titled “Implementation of”RenderingOptionsData.AmbientOcclusionIntensity
AmbientOcclusionMultiplier
Section titled “AmbientOcclusionMultiplier”
readonlyAmbientOcclusionMultiplier:number|undefined
A multiplier applied to the ambient occlusion color. Added in SketchUp 2026.
Implementation of
Section titled “Implementation of”RenderingOptionsData.AmbientOcclusionMultiplier
BackgroundColor
Section titled “BackgroundColor”
readonlyBackgroundColor:Color
The sky background color when no sky texture is active.
Implementation of
Section titled “Implementation of”RenderingOptionsData.BackgroundColor
BandColor
Section titled “BandColor”
readonlyBandColor:Color
The color of the horizon band between sky and ground.
Implementation of
Section titled “Implementation of”RenderingOptionsData.BandColor
ConstructionColor
Section titled “ConstructionColor”
readonlyConstructionColor:Color
The color used to draw construction lines and points.
Implementation of
Section titled “Implementation of”RenderingOptionsData.ConstructionColor
DepthQueWidth
Section titled “DepthQueWidth”
readonlyDepthQueWidth:number
Line width for depth cueing — thicker lines appear closer.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DepthQueWidth
DisplayColorByLayer
Section titled “DisplayColorByLayer”
readonlyDisplayColorByLayer:boolean
Whether entities are colored by their tag instead of their own material.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DisplayColorByLayer
DisplayDims
Section titled “DisplayDims”
readonlyDisplayDims:boolean
Whether dimension entities are shown.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DisplayDims
DisplayFog
Section titled “DisplayFog”
readonlyDisplayFog:boolean
Whether fog is shown in the viewport.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DisplayFog
DisplayInstanceAxes
Section titled “DisplayInstanceAxes”
readonlyDisplayInstanceAxes:boolean
Whether component instance axes are shown.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DisplayInstanceAxes
DisplaySectionCuts
Section titled “DisplaySectionCuts”
readonlyDisplaySectionCuts:boolean
Whether section cut geometry is shown.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DisplaySectionCuts
DisplaySectionPlanes
Section titled “DisplaySectionPlanes”
readonlyDisplaySectionPlanes:boolean
Whether section plane handles are shown in the viewport.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DisplaySectionPlanes
DisplaySketchAxes
Section titled “DisplaySketchAxes”
readonlyDisplaySketchAxes:boolean
Whether the sketch axes are shown in the viewport.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DisplaySketchAxes
DisplayText
Section titled “DisplayText”
readonlyDisplayText:boolean
Whether text entities are shown.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DisplayText
DisplayWatermarks
Section titled “DisplayWatermarks”
readonlyDisplayWatermarks:boolean
Whether watermark images are shown in the viewport.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DisplayWatermarks
DrawBackEdges
Section titled “DrawBackEdges”
readonlyDrawBackEdges:boolean
Whether edges behind opaque faces are shown as dashed lines.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DrawBackEdges
DrawDepthQue
Section titled “DrawDepthQue”
readonlyDrawDepthQue:boolean
Whether depth cueing (line width that varies with distance) is enabled.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DrawDepthQue
DrawGround
Section titled “DrawGround”
readonlyDrawGround:boolean
Whether the ground plane is shown.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DrawGround
DrawHidden
Section titled “DrawHidden”
readonlyDrawHidden:boolean
Whether hidden geometry is shown as dashed lines.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DrawHidden
DrawHorizon
Section titled “DrawHorizon”
readonlyDrawHorizon:boolean
Whether the horizon line is shown.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DrawHorizon
DrawLineEnds
Section titled “DrawLineEnds”
readonlyDrawLineEnds:boolean
Whether line endpoints are drawn as dots.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DrawLineEnds
DrawProfilesOnly
Section titled “DrawProfilesOnly”
readonlyDrawProfilesOnly:boolean
Whether only silhouette/profile edges are drawn, hiding interior edges.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DrawProfilesOnly
DrawSilhouettes
Section titled “DrawSilhouettes”
readonlyDrawSilhouettes:boolean
Whether silhouette edges are drawn with a thicker line.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DrawSilhouettes
DrawUnderground
Section titled “DrawUnderground”
readonlyDrawUnderground:boolean
Whether geometry below the ground plane is visible.
Implementation of
Section titled “Implementation of”RenderingOptionsData.DrawUnderground
EdgeColorMode
Section titled “EdgeColorMode”
readonlyEdgeColorMode:EdgeColorMode
How edge colors are determined — by object, foreground, or axis direction.
Implementation of
Section titled “Implementation of”RenderingOptionsData.EdgeColorMode
EdgeDisplayMode
Section titled “EdgeDisplayMode”
readonlyEdgeDisplayMode:EdgeDisplayMode
Which edges are drawn — all, standalone only, or none.
Implementation of
Section titled “Implementation of”RenderingOptionsData.EdgeDisplayMode
EdgeType
Section titled “EdgeType”
readonlyEdgeType:EdgeType
The edge drawing algorithm — standard (crisp) or sketchy (hand-drawn).
Implementation of
Section titled “Implementation of”ExtendLines
Section titled “ExtendLines”
readonlyExtendLines:boolean
Whether lines extend slightly past their endpoints for a hand-drawn look.
Implementation of
Section titled “Implementation of”RenderingOptionsData.ExtendLines
FaceBackColor
Section titled “FaceBackColor”
readonlyFaceBackColor:Color
The default back-face color when no material is applied.
Implementation of
Section titled “Implementation of”RenderingOptionsData.FaceBackColor
FaceFrontColor
Section titled “FaceFrontColor”
readonlyFaceFrontColor:Color
The default front-face color when no material is applied.
Implementation of
Section titled “Implementation of”RenderingOptionsData.FaceFrontColor
FogColor
Section titled “FogColor”
readonlyFogColor:Color
The color of the fog effect.
Implementation of
Section titled “Implementation of”FogEndDist
Section titled “FogEndDist”
readonlyFogEndDist:number
The distance at which fog reaches full opacity.
Implementation of
Section titled “Implementation of”RenderingOptionsData.FogEndDist
FogStartDist
Section titled “FogStartDist”
readonlyFogStartDist:number
The distance at which fog begins.
Implementation of
Section titled “Implementation of”RenderingOptionsData.FogStartDist
FogUseBkColor
Section titled “FogUseBkColor”
readonlyFogUseBkColor:boolean
Whether fog uses the background color instead of FogColor.
Implementation of
Section titled “Implementation of”RenderingOptionsData.FogUseBkColor
ForegroundColor
Section titled “ForegroundColor”
readonlyForegroundColor:Color
The edge color used when EdgeColorMode is Foreground.
Implementation of
Section titled “Implementation of”RenderingOptionsData.ForegroundColor
GroundColor
Section titled “GroundColor”
readonlyGroundColor:Color
The color of the ground plane.
Implementation of
Section titled “Implementation of”RenderingOptionsData.GroundColor
GroundTransparency
Section titled “GroundTransparency”
readonlyGroundTransparency:number
Transparency of the ground plane from 0 (opaque) to 100 (fully transparent).
Implementation of
Section titled “Implementation of”RenderingOptionsData.GroundTransparency
HideConstructionGeometry
Section titled “HideConstructionGeometry”
readonlyHideConstructionGeometry:boolean
Whether construction lines and points are hidden.
Implementation of
Section titled “Implementation of”RenderingOptionsData.HideConstructionGeometry
HighlightColor
Section titled “HighlightColor”
readonlyHighlightColor:Color
The color used to highlight selected entities.
Implementation of
Section titled “Implementation of”RenderingOptionsData.HighlightColor
HorizonColor
Section titled “HorizonColor”
readonlyHorizonColor:Color
The color of the horizon line where sky meets ground.
Implementation of
Section titled “Implementation of”RenderingOptionsData.HorizonColor
InactiveFade
Section titled “InactiveFade”
readonlyInactiveFade:number
Opacity of geometry outside the current edit context, from 0 to 100.
Implementation of
Section titled “Implementation of”RenderingOptionsData.InactiveFade
InactiveHidden
Section titled “InactiveHidden”
readonlyInactiveHidden:boolean
Whether geometry outside the current edit context is hidden entirely.
Implementation of
Section titled “Implementation of”RenderingOptionsData.InactiveHidden
InstanceFade
Section titled “InstanceFade”
readonlyInstanceFade:number
Opacity of component instances outside the current edit context, from 0 to 100.
Implementation of
Section titled “Implementation of”RenderingOptionsData.InstanceFade
InstanceHidden
Section titled “InstanceHidden”
readonlyInstanceHidden:boolean
Whether component instances outside the edit context are hidden.
Implementation of
Section titled “Implementation of”RenderingOptionsData.InstanceHidden
JitterEdges
Section titled “JitterEdges”
readonlyJitterEdges:boolean
Whether edges have a slight random offset for a hand-drawn look.
Implementation of
Section titled “Implementation of”RenderingOptionsData.JitterEdges
LineEndWidth
Section titled “LineEndWidth”
readonlyLineEndWidth:number
Width of line endpoints in pixels when DrawLineEnds is on.
Implementation of
Section titled “Implementation of”RenderingOptionsData.LineEndWidth
LineExtension
Section titled “LineExtension”
readonlyLineExtension:number
How far lines extend past their endpoints in pixels.
Implementation of
Section titled “Implementation of”RenderingOptionsData.LineExtension
LockedColor
Section titled “LockedColor”
readonlyLockedColor:Color
The color used to indicate locked geometry.
Implementation of
Section titled “Implementation of”RenderingOptionsData.LockedColor
MaterialTransparency
Section titled “MaterialTransparency”
readonlyMaterialTransparency:boolean
Whether material transparency is rendered.
Implementation of
Section titled “Implementation of”RenderingOptionsData.MaterialTransparency
ModelTransparency
Section titled “ModelTransparency”
readonlyModelTransparency:boolean
Whether X-ray (model transparency) mode is enabled.
Implementation of
Section titled “Implementation of”RenderingOptionsData.ModelTransparency
options
Section titled “options”
readonlyoptions:Map<string,AttributeValue>
The raw key-value map of all rendering options from SketchUp.
RenderMode
Section titled “RenderMode”
readonlyRenderMode:RenderMode
The face shading style — wireframe, flat, smooth, or PBR.
Implementation of
Section titled “Implementation of”RenderingOptionsData.RenderMode
SectionActiveColor
Section titled “SectionActiveColor”
readonlySectionActiveColor:Color
The color of active section plane lines.
Implementation of
Section titled “Implementation of”RenderingOptionsData.SectionActiveColor
SectionCutDrawEdges
Section titled “SectionCutDrawEdges”
readonlySectionCutDrawEdges:boolean
Whether edges are drawn on section cut faces.
Implementation of
Section titled “Implementation of”RenderingOptionsData.SectionCutDrawEdges
SectionCutFilled
Section titled “SectionCutFilled”
readonlySectionCutFilled:boolean
Whether section cut faces are filled with a solid color.
Implementation of
Section titled “Implementation of”RenderingOptionsData.SectionCutFilled
SectionCutWidth
Section titled “SectionCutWidth”
readonlySectionCutWidth:number
The line width of section cut edges in pixels.
Implementation of
Section titled “Implementation of”RenderingOptionsData.SectionCutWidth
SectionDefaultCutColor
Section titled “SectionDefaultCutColor”
readonlySectionDefaultCutColor:Color
The default color of section cut lines.
Implementation of
Section titled “Implementation of”RenderingOptionsData.SectionDefaultCutColor
SectionDefaultFillColor
Section titled “SectionDefaultFillColor”
readonlySectionDefaultFillColor:Color
The default fill color for section cut faces.
Implementation of
Section titled “Implementation of”RenderingOptionsData.SectionDefaultFillColor
SectionInactiveColor
Section titled “SectionInactiveColor”
readonlySectionInactiveColor:Color
The color of inactive (non-current) section plane lines.
Implementation of
Section titled “Implementation of”RenderingOptionsData.SectionInactiveColor
ShowViewName
Section titled “ShowViewName”
readonlyShowViewName:boolean
Whether the scene/view name is shown in the viewport.
Implementation of
Section titled “Implementation of”RenderingOptionsData.ShowViewName
SilhouetteWidth
Section titled “SilhouetteWidth”
readonlySilhouetteWidth:number
The line width for silhouette/profile edges in pixels.
Implementation of
Section titled “Implementation of”RenderingOptionsData.SilhouetteWidth
SkyColor
Section titled “SkyColor”
readonlySkyColor:Color
The sky color shown above the horizon.
Implementation of
Section titled “Implementation of”Texture
Section titled “Texture”
readonlyTexture:boolean
Whether textures are rendered. When false, materials show as flat colors.
Implementation of
Section titled “Implementation of”TransparencySort
Section titled “TransparencySort”
readonlyTransparencySort:TransparencySort
The algorithm used to sort overlapping transparent faces.
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”refresh()
Section titled “refresh()”refresh():
Promise<RenderingOptions>
Re-fetches the rendering options from SketchUp to pick up any changes made since this snapshot was taken.
Returns
Section titled “Returns”Promise<RenderingOptions>
toString()
Section titled “toString()”toString():
string
Returns a string representation of an object.
Returns
Section titled “Returns”string