# Moving camera then saving picture in Makie

**URL:** <https://discourse.julialang.org/t/moving-camera-then-saving-picture-in-makie/21938>\
**Category:** Visualization\
**Created:** [March 16, 2019, 10:38am UTC](https://discourse.julialang.org/t/moving-camera-then-saving-picture-in-makie/21938 "2019-03-16T10:38:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fa-bien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fa-bien/32/5559_2.png) [@fa-bien](https://discourse.julialang.org/u/fa-bien)\
**Post date:** [March 16, 2019, 10:38am UTC](https://discourse.julialang.org/t/moving-camera-then-saving-picture-in-makie/21938/1 "2019-03-16T10:38:24Z")

</div>

I visualise 3d scenes with Makie. Moving the camera (either with rotate\_cam! or with update\_cam!) only seems to works from the REPL or when saving an animation: as soon as the scene is evaluated, it returns to the original camera position, despite the exclamation mark. Therefore I cannot, for instance, rotate the camera then save the rotated scene to a PNG file. What is the proper way to, say, rotate then save the resulting scene to a PNG file?

---

<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:** [March 16, 2019, 3:25pm UTC](https://discourse.julialang.org/t/moving-camera-then-saving-picture-in-makie/21938/2 "2019-03-16T15:25:14Z")

</div>

Try, scene.center = false, before saving… this is half a bug 😉 but, try master of makie & abstractplotting… I fixed a few related issues, maybe i magically also fixed this one 😉

---

<div class="post-metadata">

**Author:** ![fa-bien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fa-bien/32/5559_2.png) [@fa-bien](https://discourse.julialang.org/u/fa-bien)\
**Post date:** [March 16, 2019, 6:24pm UTC](https://discourse.julialang.org/t/moving-camera-then-saving-picture-in-makie/21938/3 "2019-03-16T18:24:49Z")

</div>

Thanks a lot, scene.center = false does the trick. Otherwise it still centers the scene at each evaluation also with the master branches of Makie and AbstractPlotting.
