Color By menu on toolbar does not update
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
If a filter adds a new array, Color By filter does not update to reflect it. Try this:
- Create sphere
- Create a programmable filter - apply
- Set the script to below - apply The color by menu does not change.
from paraview import vtk
output = self.GetOutputDataObject(0)
numpts = output.GetNumberOfPoints() fa = vtk.vtkFloatArray() fa.SetName("foo") output.GetPointData().AddArray(fa)
for i in range(0, numpts): fa.InsertNextValue(i)