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.
Example
Section titled “Example”let model = await SketchUpApi.getActiveModel();let camera = await model.view.getCamera();console.log(camera.type);// => 1 (CameraTypeEnum.perspective)Enumeration Members
Section titled “Enumeration Members”parallel
Section titled “parallel”parallel:
0
Orthographic projection — no vanishing points.
parallel2d
Section titled “parallel2d”parallel2d:
3
Orthographic with orbit locked (2D view).
perspective
Section titled “perspective”perspective:
1
Standard 3D perspective with vanishing points.
perspective2d
Section titled “perspective2d”perspective2d:
2
Perspective with orbit locked (2D view).