The FXScript Reference

For Final Cut Pro created by Joe Maller

ChannelCopy

ChannelCopy(src, dest, copyAlpha, copyRed, copyGreen, copyBlue)

Additional Notes

YUV errors

Occasionally, ChannelCopy will incidentally reset a target image buffer's color format when copying channels. Even though in theory it shouldn't matter what color format either image buffer is in, I've seen instances where an otherwise unexplainable RGB/YUV error directly resulted from mismatched color formats in a ChannelCopy operation. Converting the source image buffer to the same pixel format as the destination image buffer fixed the problem.

Skipping Channels

Source channels are selected by their corresponding FXScript constant; kAlpha, kRed, kGreen and kBlue. To leave a channel unchanged, use kNone instead of a color.