Skip to content

EdgeColorMode

How edge colors are determined when rendering.

let model = await SketchUpApi.getActiveModel();
// Color edges by axis direction
await model.updateRenderingOptions({
EdgeColorMode:
SketchUpApi.EdgeColorMode.Direction,
});
// Re-apply the current camera to force
// SketchUp to redraw immediately
let cam = await model.view.getCamera();
await model.view.setCamera(cam);

Direction: 2

Edge color varies by axis direction — X, Y, or Z.


Foreground: 1

All edges share a single foreground color.


Object: 0

Edges use the color of their parent object or material.