function main(image, doc, layer) {
var newLayer = doc.baseGroup().addBitmapLayer();
doc.selectLayer(newLayer); // Private API, but needed to make the below work correctly. Will fix in 7.1.
var params = {
inputWidth: 12,
inputColor0: CIColor.blackColor(),
inputColor1: CIColor.whiteColor(),
};
newLayer.appendFilterWithName_parameters("CICheckerboardGenerator", params);
}
I haven’t documented this one yet unfortunately. There’s a couple of new things I decided to open up but haven’t yet. I’ve added it to the todo list for 7.1