ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

AE script : link layer property to null slider

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Denis-Fabien CorlinAE script : link layer property to null slider
by on Mar 1, 2012 at 9:33:24 am

Hi there,

I'm a newby in script, but still there's an automation I'd like to achieve... and managed to have sort of a beginning but get stuck.

The idea is to duplicate a selected layer, add a property and then link it to a Null with a slider, and finally choose a TrkMat (e.g Luma inv).

and here I am :

var myComp = app.project.activeItem;
var myLayer = myComp.selectedLayers[0];
var myNewLayer = myLayer.duplicate();
var controlNull = myComp.layers.addNull(); = "Exposure Control";
//add a sliders
var offset = controlNull("Effects").addProperty("Slider Control"); = 'exposure';
var myNewLayer = myLayer.duplicate();
var myEffect = myNewLayer.Effects.addProperty("exposure");

I can't manage to link the master exposure to the slider nor select a TrkMat option...

Anyone ?

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2016 All Rights Reserved