Skip to content

CameraType

The projection mode used by a camera.

SketchUp supports four camera modes. perspective is the default — it mimics how human eyes see, with distant objects appearing smaller. parallel (also called orthographic) shows all objects at the same scale regardless of distance, which is useful for technical drawings. The 2d variants lock the camera so the user cannot orbit.

let model = await SketchUpApi.getActiveModel();
let camera = await model.view.getCamera();
console.log(camera.type);
// => 1 (CameraTypeEnum.perspective)

Camera

parallel: 0

Orthographic projection — no vanishing points.


parallel2d: 3

Orthographic with orbit locked (2D view).


perspective: 1

Standard 3D perspective with vanishing points.


perspective2d: 2

Perspective with orbit locked (2D view).