Skip to content

view

Set or query the camera view angle.

view(az, el)
view([az el])
view(2)
view(3)
[az, el] = view

Sets the camera azimuth and elevation (degrees). Convenience values: view(2) for top-down 2D view, view(3) for default 3D view (azimuth -37.5°, elevation 30°). Without arguments, returns the current view as [az el].

view(3) % standard 3D
view(0, 90) % top-down
view(180, 0) % from behind, edge-on
  • camorbit — Orbit the camera around the target.
  • campos — Get or set the camera position.
  • camlookat — Aim the camera at an object or point.