Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script for creating a fibonacci based circle-animation

  • Script for creating a fibonacci based circle-animation

    Posted by Anne Meo on December 18, 2010 at 2:30 pm

    Hi to all,

    i have a request animating a background texture. it nedds to have several circle (not rings), which should have 3 fix colors and scaled in relation to the fibonacci rule, 1+2=3, 2+3=5, 3+5=8, and so on.

    so i basically need some kind of emitter, which creates on circle, slowly scaling bigger and fading slowly to transparent at the end of lifespan. the following created circles should be in relation to fibonaccis rule, smaller or bigger. all that based casually based on the three colors.

    in total, there should be around 10-12 circles, more or less constantly created and dying.

    got it? if not ask, i´ll explain as much as is necessary to understand

    best to all
    Ann

    Anne Meo replied 15 years, 8 months ago 3 Members · 4 Replies
  • 4 Replies
  • Chris Wright

    December 18, 2010 at 9:35 pm

    maybe use particular, regular birth to death opacity and random start size dependent on
    //scale fibonacci

    var limit=14; // or random size start

    if (limit>timeToFrames())
    [b2(timeToFrames()),b2(timeToFrames())];
    else
    [b2(limit),b2(limit)]

    function b2(n)

    {
    prev1=0, prev2=1;
    for( i=0; ihttps://technicolorsoftware.hostzi.com/

  • Anne Meo

    December 19, 2010 at 12:04 am

    Thanks a million!

    tried it and get an error message (on line 17)
    also, it´s not clear for in which parameters to paste the expression

    I have the impression, i´m just millimeters away to the solution whith this,
    further help would be greatly appreciated

    thanks
    ann

  • Dan Ebberts

    December 19, 2010 at 12:25 am

    It looks like part of this line got chopped off:

    for( i=0; i < n; i++) {

    Dan

  • Anne Meo

    December 19, 2010 at 12:59 am

    Thanks Dan,

    got a little ahead, but getting this error message:
    ————————————————–
    AFX-Warning: Expression result must be of dimension 1, not 2
    Expression disabled
    ————————————————–

    Any help? In which parameter should activate the expression?

    Thanks so much
    Ann

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