addAdjustmentLayer method?

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
peteoconnell
Posts: 19
Joined: November 14th, 2004, 2:10 pm

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
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

You just use the adjustmentLayer attribute of a regular AVLayer:

myLayer.adjustmentLayer = true;


Dan
Post Reply