How do I add a widget to change the gradient opacity function in real time to change the 3D reconstructed image?

image

Did you consider the Piecewise Gaussian Widget ?