Disabling Image Effects via Script?

Hey guys, I am making a game using 3 different Image effects on the MainCamera. Blur, grayscale and MotionBlur. I want all these 3 Image Effects to disable when I pick up an object using “P”.

can somebody please code this?

Just enable/disable the effects script.

Effect effect = GetComponent("Effect") as Effect;
effect.gameobject.active = false;