FORUMS: list search recent posts

Add Effect to Layer

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Rikus Honey
Add Effect to Layer
on Nov 10, 2014 at 5:24:01 pm

Hi,
I would like to add the effect "Venetian Blinds" to the selected layer but keep getting an error and can't find a solution.

var activeComp = app.project.activeItem;
var selectedLayer = activeComp.selectedLayer;
selectedLayer.addProperty("ADBE Venetian Blinds");


Return to posts index

Dan Ebberts
Re: Add Effect to Layer
on Nov 10, 2014 at 6:41:46 pm

More like this:

var activeComp = app.project.activeItem;
var selectedLayer = activeComp.selectedLayers[0];
selectedLayer.property("ADBE Effect Parade").addProperty("ADBE Venetian Blinds");


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]