custom shader uniform in vtk802

I am using VTK8.2 version. I want to generate simulation animation by updating the shader uniform variables in the graphical interface. However, all the examples use vtkCommand as the basis for updating control. I can only use vtkShaderProgram to update the shader uniform variables there. Inconvenient, does anyone have a solution?