# Makie: programmatic control of camera

**URL:** <https://discourse.julialang.org/t/makie-programmatic-control-of-camera/90949>\
**Category:** Visualization\
**Tags:** makie, glmakie\
**Created:** [November 28, 2022, 1:48pm UTC](https://discourse.julialang.org/t/makie-programmatic-control-of-camera/90949 "2022-11-28T13:48:42Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [November 28, 2022, 2:50pm UTC](https://discourse.julialang.org/t/makie-programmatic-control-of-camera/90949/4 "2022-11-28T14:50:37Z")

</div>

Just for completeness, here is a little MWE that shows how to access the camera:

```julia
using GLMakie

fig, lscene, plot_obj = meshscatter(rand(Point3f, 10))

# if you want to directly access the camera:
cam3d = Makie.cameracontrols(lscene)

# API with a bit more of convenience:
zoom!(lscene.scene, 1.05)
rotate_cam!(lscene.scene, Vec3f(0, 0, 0.2))
translate_cam!(lscene.scene, Vec3f(0, 0, 1))

```

---

_[View the full topic](https://discourse.julialang.org/t/makie-programmatic-control-of-camera/90949)._
