This seems like it should be easy but I’m having problems with it. I’m not familiar with the getcomponent so maybe I’m a little off, but here’s what I have.
I get the error: Object reference not set to an instance of an object
I'm not familiar with that post process but your formatting looks a bit messy. Try something like this out:
private var fogScript : GlobalFog;
function Start () {
fogScript = GetComponent(GlobalFog); //Camera.main.GetComponent(GlobalFog) if script is not on camera.
fogScript.globalFogColor = Color.grey;
}