Page 1 of 1

addAdjustmentLayer method?

Posted: August 28th, 2008, 12:06 pm
by peteoconnell
Hi, does anyone know if an addAdjustmentLayer method exists? It seem to be omitted from the AE CS3 Scripting Guide.

Code: Select all

//Start
//I thought this might work but it doesn't
myComp = app.project.activeItem;
myAdjLayer = myComp.layers.addAdjustmentLayer([0,0,0], undefined, myComp.width, myComp.height,1);
myAdjLayer.startTime = 0
//end

Any help would be greatly appreciated
Pete O'Connell

roguekeyframe.com

Re: addAdjustmentLayer method?

Posted: August 28th, 2008, 2:48 pm
by Dan Ebberts
You just use the adjustmentLayer attribute of a regular AVLayer:

myLayer.adjustmentLayer = true;


Dan