FORUMS: list search recent posts

Linking effects parameter to Slider

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Madli Man
Linking effects parameter to Slider
on Dec 28, 2012 at 5:11:21 pm

Hi again,

I have a few question, i have 8 beam effects on one layer. i would like to animate beam time after it complete one beam to another beam. Its like linking one control slider(0 to 100) to complete 8 beam one by one next.

sorry for my English.

Please help sir.

Thank you



Return to posts index

Dan Ebberts
Re: Linking effects parameter to Slider
on Dec 28, 2012 at 6:25:34 pm

I'm not sure if this is what you're after, but you could use an expression like this for the Beam's Time parameter:

s = effect("Slider Control")("Slider");
numBeams = 8;
myIdx = 1;
range = 100/numBeams;
myStart = (myIdx-1)*range;
myEnd = myStart + range;
linear(s,myStart,myEnd,0,100)

For the second beam, you would change myIdx to 2, etc.

I hope that helps.

Dan



Return to posts index

Madli Man
Re: Linking effects parameter to Slider
on Dec 28, 2012 at 6:47:46 pm

Hi Mr Dan,

Wah.. Thank you for solving my problem. this is the code im stuck in for years. today only resume it again. Im really appreciate it very much for code. it just i change it completion to 50%.

Thanks Dan.

madli



Return to posts index


Madli Man
Re: Linking effects parameter to Slider
on Dec 29, 2012 at 2:00:37 pm

Hi Dan,

here is another one question. regarding indexing

this layer named "line 27" have point X Y expression, there is another layer named "null 27 that i would like reffering to target point from Index +1 or - 1 from Null 27

please help sir
Thank you.

Madliman

here is my expression for "line 27" XY :

currentNull = thisComp.layer("Null "+(thisLayer.name.substr(7,3))) // get Null name
currentNull(index+1).toComp([0,0,0]) // get point from layer above





Return to posts index

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