Modifying Image Effect values from script

I’m applying a couple of image effects to a camera, the thing is that I would like to apply them gradually. For example, I would like to increase Blur’s Size as the character approaches death. For other stuff I was using various cameras, but I don’t think adding 20+ cameras would be the best way to go about it or is it?

In whichever script you’d like to access the camera’s fx, add some code that is based on this:

void Start()
{
    BlurEffect blur = Camera.main.gameObject.GetComponent<BlurEffect>();
}


void Update()
{
    blur.parameterToBeAffected = newValue;
}