ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

index of effect, not layer?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Andy Engelkemier
index of effect, not layer?
on Jan 18, 2010 at 8:12:56 pm

I thought I'd make a line of circles using an expression. I try to use expressions when I have some extra time so i know how to use them when I need them.

I'm trying to do this on a single layer.

I made a distance slider up top, then use the circle effect multiple times.

so I did this, to start:

dist = effect("distance")("Slider");
cX = effect("Circle")("Center")[0];
cY = effect("Circle")("Center")[1];
moveDist = dist * (??? effect parameter index -1 ???));
[cX + moveDist, cY]

Obviously I don't know what to put in line 4 there between the question marks. That's just what I'd like to put, but can't find how to do it. I can find how to call the index, but nothing that returns the current effect's index.

How do I get afterEffects to send back the index# of the effect the script is in?

Return to posts index

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