# Recording an 3d mesh animation, not updating between frames

**URL:** <https://discourse.julialang.org/t/recording-an-3d-mesh-animation-not-updating-between-frames/89428>\
**Category:** Visualization\
**Tags:** mesh, glmakie\
**Created:** [October 28, 2022, 5:58am UTC](https://discourse.julialang.org/t/recording-an-3d-mesh-animation-not-updating-between-frames/89428 "2022-10-28T05:58:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![m\_x155](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@m\_x155](https://discourse.julialang.org/u/m_x155)\
**Post date:** [October 28, 2022, 5:58am UTC](https://discourse.julialang.org/t/recording-an-3d-mesh-animation-not-updating-between-frames/89428/1 "2022-10-28T05:58:47Z")

</div>

Hi, I have some results from a simulation that represent a 3d surface object moving in time. When I try to record the mesh much like the example in the documentation I don’t seem to get the plot actually updating. It displays one single frame. I am pretty new here so there is probably something I am missing.  
Thanks in advance.

using Makie, GLMakie  
f, ax, pl = mesh(verticies\_i’,faces)  
record(f, “uv\_mesh2.mp4”, 1:100:length(bd1)) do i  
verticies\_i=(bd1[i].Tib_verticies\_b’+bd1[i].sbr\_i_ones(1,n))’  
# mesh!(ax,verticies\_i’,faces)  
end

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [October 28, 2022, 6:19am UTC](https://discourse.julialang.org/t/recording-an-3d-mesh-animation-not-updating-between-frames/89428/2 "2022-10-28T06:19:01Z")

</div>

You’re overwriting the vertices variable, you need to turn it into an Observable and update it not overwrite it.

[https://docs.makie.org/stable/documentation/nodes/](https://docs.makie.org/stable/documentation/nodes/)
