Makie: programmatic control of camera

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

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))
4 Likes