Replies: 1 comment
-
I could not solve this problem by updating the plotter window and using the writer, but I came up with a slightly more pragmatic solution - I make a high resolution screenshot of each time I load the plot window in a loop and then stitched the images together to make a movie. Not pretty, but it works for now until I can figure this out another time. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First check
Commit to Help
Sample Code What is the problem, question, or error?
Write a short description telling me what you are doing, what you expect to happen, and what is currently happening.
Description
I've got quite a complicated scene with multiple meshes in it and I'm using 4 suplots to view from 4 different viewpoints. The setup was originally based on the vector component example. The next task is the part I've really struggled with - I need to make an animation as the results change over time, so effectively reloading each of the meshes every loop iteration while keeping the 4-plot layout and camera positions and colour bar limits that are set.
I failed for hours to get the movie to work before coming across this bug report and by using the information there I was able to get to get the movie file created.
However, there are several problems.
Despite changing the
mesh.point_data["Nodal Displacement"]
in a loop, none of my plots are updating in the loop. I've assumed that because the subplots are using a copy of the original mesh, I only need to update the original mesh - is that correct?Or because I'm using 4-subplots, do I need a second level loop to iterate through each subplot and then change the mesh?
And despite expecting to see a text annotation showing the current timestep, that is also missing.Correction, as I took a screenshot I just noticed the text is overlapping the other text. This is my fault, but how to I specify the position to be in figure terms, possibly centred at the top between the subplots?I presume these are all related to the 4 subplots complicating things?
One last comment, in my example I'm only changing the values of the mesh but in my real case the mesh will be deforming each timestep so I will be replacing the whole mesh and data - I think I just need to use
.copy_from()
in my loop like in the glyph movie example?System Information
Screenshots
Beta Was this translation helpful? Give feedback.
All reactions