Saving an animation file fails when a trace is played back
This was tested on Mac OSx86 and Linux using ParaView version 5.12.0-RC2. When performing a trace everything works great until you try and use pvpython or pvbatch to replay the trace. Both of the utilities give the same error as shown below:
Set PVPYTHON_PYTHONPATH to include custom python modules
OpenGL core version = 4.6
hardwareRender = 1
This is version 5.12.0-RC2-kw of pvpython.
Rendering in Hardware!
VisRTX 0.1.6, using devices:
0: GRID V100S-4Q (Total: 4.3 GB, Available: 2.9 GB)
Traceback (most recent call last):
File "snip/can_test_Two.py", line 106, in <module>
SaveAnimation('snip/cantestTwo.avi', renderView1, 16, ImageResolution=[1616, 788],
File "sinp/5.12.0-RC2-kw/Linux-cee-rhel7-x86_64/lib/python3.10/site-packages/paraview/simple.py", line 1583, in SaveAnimation
options.AnimationScene = scene
File "snip/5.12.0-RC2-kw/Linux-cee-rhel7-x86_64/lib/python3.10/site-packages/paraview/servermanager.py", line 485, in __setattr__
setter(self, value)
File "snip/5.12.0-RC2-kw/Linux-cee-rhel7-x86_64/lib/python3.10/site-packages/paraview/servermanager.py", line 2618, in setProperty
return self.SetPropertyWithName(propName, value)
File "snip/5.12.0-RC2-kw/Linux-cee-rhel7-x86_64/lib/python3.10/site-packages/paraview/servermanager.py", line 344, in SetPropertyWithName
prop.SetData(arg)
File "snip/5.12.0-RC2-kw/Linux-cee-rhel7-x86_64/lib/python3.10/site-packages/paraview/servermanager.py", line 1385, in SetData
self.SMProperty.AddProxy(value_proxy)
TypeError: AddProxy argument 1: method requires a VTK object
Here is the file that was generated via Linux and the trace function of paraview: can_test_Two.py
The procedure I used to construct the trace, is in the tutorials section 14.3.1.2. Let's create a Python trace.
Edited by W. Alan Scott