Introduction to Fxscript
First, we start by selecting the TOOL in the FCP menu and click on FxBuilder.
Now we have open the FxBuilder we see two tabs the Fxbuilder Text Entry here's were your FxScript goes and your script editor with in FCP.
The second tab is your FXBuilder Input Controls here were your input video feed goes.Now go get any video and place it in source 1.
Now We can start creating our first FxScript now go back to your FXbuilder Text Entry tab and write the code bellow.
filter "Tint";
group "Image Control";
input RGBtint, "Tint Color", color, 0, 0, 0, 0;
input amt, "Amount", slider, 100, 0, 100;
InformationFlag("YUVaware")
code
YUVcolor yuvtint;
RGBtint.a = 255;
yuvtint = RGBtint;
yuvtint += 128;
ConvertImage(src1, dest, kFormatYUV219);
channelFill(Dest, -1, -1, yuvtint.u, yuvtint.v);
blend(src1, dest, dest, amt/100);
It should look like this:
On the FCP menu click on FxBuilder and select run.

