PLY export with color with Scalar

Here is a solution. Instead of using “Save Data”, add a programmable filter with this code:

import vtk as VTK
input=self.GetPolyDataInput()
writer=VTK.vtkPLYWriter()
writer.SetInputData(input)
writer.SetFileName("/path/to/test.ply")
writer.SetArrayName("color")
writer.Write()

FYI:https://gitlab.kitware.com/paraview/paraview/issues/19011

thanks i did it like this on own code, could not respond anymore yesterday because of account restrictions (max of 22 posts exceeded), lol

Thanks for your feedback.