mwestphal
(Mathieu Westphal (Kitware))
21
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()
mwestphal
(Mathieu Westphal (Kitware))
22
thanks i did it like this on own code, could not respond anymore yesterday because of account restrictions (max of 22 posts exceeded), lol
mwestphal
(Mathieu Westphal (Kitware))
24
Thanks for your feedback.