Export data as .ply via python is missing color information
Hello paraview community,
when exporting my data via a Python script using pvpython or pvbatch and the method SavaData
or PPLYWriter
the colors are not written to the output ply
file.
When I save the same data via the GUI Save Data
--> Files of type: PLY Polygonal File Format(*.ply)
--> Color Properties
--> Enable Coloring:
the color is saved to the ply file. The Python script that does not export the data can be created by "Trace" tool within Paraview while doing the processes in the GUI.
I am using the following Paraview installation:
Client Information:
Version: 5.10.0
VTK Version:
Qt Version: 5.15.2
vtkIdType size: 64bits
Embedded Python: On
Python Library Path: /usr/lib64/python3.10
Python Library Version: 3.10.9 (main, Dec 7 2022, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)]
Python Numpy Support: On
Python Numpy Path: /usr/lib64/python3.10/site-packages/numpy
Python Numpy Version: 1.22.0
Python Matplotlib Support: On
Python Matplotlib Path: /usr/lib64/python3.10/site-packages/matplotlib
Python Matplotlib Version: 3.5.3
Python Testing: Off
MPI Enabled: Off
Disable Registry: Off
Test Directory:
Data Directory:
SMP Backend: Sequential
SMP Max Number of Threads: 1
OpenGL Vendor: NVIDIA Corporation
OpenGL Version: 3.2.0 NVIDIA 525.85.05
OpenGL Renderer: Quadro P400/PCIe/SSE2
Connection Information:
Remote Connection: No
Best, Jonas