-
maskFeather property in a script
Hello,
can somebody tell me if it’s possible to control the maskFeather of a creted mask … I tried some different ways, but can’t find the solution
thanks a lot
newLayer = currentComp.layers.addSolid([0,1.0,0], newName, size, size, 1);
newLayer.name = newName;
newMask = newLayer.Masks.addProperty("Mask");
newMask.inverted = false;
myMaskShape = newMask.property("maskShape");
myShape = myMaskShape.value;
myShape.vertices = [[size*0.25,size*0.25],[size*0.25,size*0.75],[size*0.75,size*0.75],[size*0.75,size*0.25]];
myShape.closed = true;
myMaskFeather = newMask.property("maskFeather");
myMaskFeather = 15;
myMaskShape.setValue(myShape);