How to change Image color like Channel mixer
Hello everybody
I have this problem can anyone help me:
I want to change Channel mixer color,
for example, change original Image color to B&W.
My code:
docRef.channels[0].color.rgb.red = 30;
docRef.channels[0].color.rgb.green = 59;
docRef.channels[0].color.rgb.blue = 11;
docRef.channels[1].color.rgb.red = 30;
docRef.channels[1].color.rgb.green = 59;
docRef.channels[1].color.rgb.blue = 11;
docRef.channels[2].color.rgb.red = 30;
docRef.channels[2].color.rgb.green = 59;
docRef.channels[2].color.rgb.blue = 11;
But not working in scripting, seems a mistake.
How should I correct this code? Thank you for your help.
