FORUMS: list search recent posts

AE script : link layer property to null slider

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Denis-Fabien Corlin
AE script : link layer property to null slider
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();
controlNull.source.name = "Exposure Control";
//add a sliders
var offset = controlNull("Effects").addProperty("Slider Control");
offset.name = '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 ?
Thx


Return to posts index

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