<div dir="auto"><p style="font-family:sans-serif;font-size:12.8px;text-indent:35.4pt">Hi,<u></u><u></u></p><p style="font-family:sans-serif;font-size:12.8px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:12.8px">I’m trying to create a PythonProgrammableFilter using vtk and the vtkThreshold filter.<u></u><u></u></p><p style="font-family:sans-serif;font-size:12.8px">There seems to be a problem when I load a state file containing that filter in ParaView.<u></u><u></u></p><p style="font-family:sans-serif;font-size:12.8px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:12.8px">I’ve attached a state file created with ParaView 5.5.0 showing the problem.<u></u><u></u></p><p style="font-family:sans-serif;font-size:12.8px">The pipeline contains two programmable filters with exactly the same code.<u></u><u></u></p><p style="font-family:sans-serif;font-size:12.8px">When I load that state file in Paraview :<u></u><u></u></p><p style="margin:0cm 0cm 0.0001pt 36pt;font-size:11pt;font-family:calibri,sans-serif"><u></u>-<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">          </span><u></u>The first filter shows an unstructured grid with 0 cells<u></u><u></u></p><p style="margin:0cm 0cm 0.0001pt 36pt;font-size:11pt;font-family:calibri,sans-serif"><u></u>-<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">          </span><u></u>The second filter shows as expected an unstructured grid with 18 cells<u></u><u></u></p><p style="font-family:sans-serif;font-size:12.8px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:12.8px">Then, if I add some spaces in the first filter and run it again it returns as expected a grid with 18 cells.<u></u><u></u></p><p style="font-family:sans-serif;font-size:12.8px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:12.8px">I think there must be something that is not well initialized in the first run but I can’t find why.<u></u><u></u></p><p style="font-family:sans-serif;font-size:12.8px">Do you have any idea on what is missing ?<u></u><u></u></p><p style="font-family:sans-serif;font-size:12.8px"><u></u>Thanks for the help.</p><p style="font-family:sans-serif;font-size:12.8px">Best regards.</p><p style="font-family:sans-serif;font-size:12.8px"><br></p><div data-smartmail="gmail_signature">Loïc</div></div>