Saving state file with TextureMapToSphere

Hello, I am trying to save a state file that includes a sphere earth object in ParaView 5.6.1. I am able to create this object by running the Python script that I have attached. However, after running this I still have to manually load the earth.png image (Properties-Miscellaneous-Texture), and this step does not show up during a trace. I was hoping this could be avoided by saving a state file which will eventually include many other parameters as well.

I am able to save a pvsm state, but trying to load that state file gives this error:

ERROR: In /ParaView/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 782
vtkPVCompositeDataPipeline (0x66658d0): Algorithm vtkTextureMapToSphere(0xcb6e2a0) returned failure for request: vtkInformation (0x9cabad0)
Debug: Off
Modified Time: 1799634
Reference Count: 1
Registered Events: (none)

I also tried saving a .py state, but ParaView was unable to even save the file:

Generic Warning: In ParaView/ParaViewCore/ServerManager/Core/vtkSMTrace.cxx, line 130
Failed to generate state.

Traceback (most recent call last):
File “ParaView/build/lib/python2.7/site-packages/paraview/”, line 208, in get_state
File “ParaView/build/lib/python2.7/site-packages/paraview/”, line 1018, in finalize
ctor_trace = accessor.trace_ctor(None, RepresentationProxyFilter())
File “ParaView/build/lib/python2.7/site-packages/paraview/”, line 527, in trace_ctor
txt = self.trace_properties(other_props, in_ctor=False)
File “ParaView/build/lib/python2.7/site-packages/paraview/”, line 494, in trace_properties
return joiner.join([x.get_property_trace(in_ctor) for x in props])
File “/ParaView/build/lib/python2.7/site-packages/paraview/”, line 613, in get_property_trace
else: return "%s = s" (varname, self.get_value())
File “ParaView/build/lib/python2.7/site-packages/paraview/”, line 634, in get_value
data = [str(Trace.get_accessor(x)) for x in data]
File “ParaView/build/lib/python2.7/site-packages/paraview/”, line 171, in get_accessor
“it. Skipping this action.” % repr(obj))
paraview.smtrace.Untraceable: “<paraview.servermanager.ImageTexture object at 0x96aa1d0> is not ‘known’ at this point. Hence, we cannot trace it. Skipping this action.”
Empty state generated.

Do you have any suggestions? Thanks in advance. (1.7 KB)

I think this post will help you get the image loaded.

Not sure why loading the state file results in error, though.

Hi @henry did you ever resolve this issue? I am running into the same problem.

See @theodorebaltis link for a solution.