Use the output of the calculator filter in pvpython

Hi,

In such cases, servermanager.Fetch is available. For example, it could be as follows:

calc_vtk = servermanager.Fetch(pythonCalculator1)
mean_temp = calc_vtk.GetPointData().GetArray('mean_temp').GetTuple1(0)

clip1 = Clip(registrationName=‘Clip1’, Input=pythonCalculator1)

clip1.ClipType = ‘Scalar’
clip1.Scalars = [‘POINTS’, ‘Temp’]
clip1.Value = mean_temp
clip1.Invert = 0
1 Like