Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Linking effects parameter to Slider

  • Linking effects parameter to Slider

    Posted by Madli Man on December 28, 2012 at 5:11 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

    Madli Man replied 13 years, 4 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    December 28, 2012 at 6:25 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

  • Madli Man

    December 28, 2012 at 6:47 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

  • Madli Man

    December 29, 2012 at 2:00 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy