Unable to dynamically change the values for color correction curves image effect

Hi,
I want to change the values of red channel of the default ColorCorrectionCurves script. I am able to access the channel also change the value for the first curve, but however it is having no effect at all. However, when I try to do the same thing manually I see immediate effect. Also the value of the key of the curve seems to change when my code executes but still I am not able to see the effect.
Please help me.

Found the answer.
Had to disable the below line in OnRenderImage
updateTexturesOnStartup = false;

Rather than modify the original script, you can its UpdateParameter() function.

…or, you can use this package from the store, which allows you to set up two different curves visually in the editor and interpolate between them on real time: Unity Asset Store - The Best Assets for Game Making

Yes, it is my package :wink: