Cannot add animations using python

Hi all.

I am trying to automate animation generation. I have a series of exodus files(ex_0.e,ex_1.e,ex_2.e…) that follow each other in time. So the last time step of ex_0 is the same as the first time step of ex_1.
I am trying to set the visibility to shift between each file when their times overlap. I can do this manually using the Time Manager, but that is tedious when I have a many files so I want to automate this using python.

To get the Python syntax I ran a trace of the process, however when I then try to run the trace I get the error that “Attribute visibility does not exist for object RepresentationAnimationHelper”.

Before I post the python code, I want to first check that doing this through Python is the best way forward.

Thanks!

David, this sounds like a reasonable approach. It’s possible the Python trace code is not fully capturing everything quite correctly. If you post some code and two of the datasets (or representative examples of such datasets), we can provide some guidance.

d_F.e (2.2 MB)
trace.py (3.7 KB)

Thanks for the reply!

I uploaded a random 1D simulation along with the trace for adding a visibility animation track and modifying a couple of the frames.
I ran the trace on 5.12.1 and it gives the same error I stated in the original post.