Forum Replies Created

Page 1024 of 1081
  • Dan Ebberts

    May 3, 2006 at 6:22 pm in reply to: expression

    This should do it:

    fadeInTime = 1; // fade in time (seconds)
    fadeOutTime = 1;

    Math.min(linear(time,inPoint,inPoint + fadeInTime,0,100),linear(time,outPoint – fadeOutTime,outPoint,100,0))

    Dan

  • Dan Ebberts

    May 3, 2006 at 6:17 pm in reply to: Expression Speed ?

    Something like this should do it:

    rate1 = 90; // initial rate (degrees per second)
    rate2 = 360; // final rate
    rampStart = 3; // start of ramp final rate (seconds)
    rampEnd = 5; // end of ramp to final rate

    if (time < rampStart){ rate1*time }else if (time < rampEnd){ rate = linear(time,rampStart,rampEnd,rate1,rate2); rate1*rampStart + (rate + rate1)*(time - rampStart)/2 }else{ rate1*rampStart + (rate2 + rate1)*(rampEnd - rampStart)/2 + rate2*(time - rampEnd) } Dan

  • Dan Ebberts

    May 3, 2006 at 6:17 pm in reply to: Expression Speed ?

    Something like this should do it:

    rate1 = 90; // initial rate (degrees per second)
    rate2 = 360; // final rate
    rampStart = 3; // start of ramp final rate (seconds)
    rampEnd = 5; // end of ramp to final rate

    if (time < rampStart){ rate1*time }else if (time < rampEnd){ rate = linear(time,rampStart,rampEnd,rate1,rate2); rate1*rampStart + (rate + rate1)*(time - rampStart)/2 }else{ rate1*rampStart + (rate2 + rate1)*(rampEnd - rampStart)/2 + rate2*(time - rampEnd) } Dan

  • Dan Ebberts

    May 3, 2006 at 3:55 pm in reply to: Expression Speed ?

    If it’s a step change, you could do it like this:

    rate1 = 180; // initial rate (degrees per second)
    rate2 = 360; // final rate
    speedUpTime = 3; // time to start using final rate (seconds)

    if (time < speedUpTime){ rate1*time }else{ rate1*speedUpTime + rate2*(time - speedUpTime) } If you need it to ramp up to the new speed it's a little more complicated, but still doable. Dan

  • Dan Ebberts

    May 3, 2006 at 3:55 pm in reply to: Expression Speed ?

    If it’s a step change, you could do it like this:

    rate1 = 180; // initial rate (degrees per second)
    rate2 = 360; // final rate
    speedUpTime = 3; // time to start using final rate (seconds)

    if (time < speedUpTime){ rate1*time }else{ rate1*speedUpTime + rate2*(time - speedUpTime) } If you need it to ramp up to the new speed it's a little more complicated, but still doable. Dan

  • Dan Ebberts

    May 1, 2006 at 7:00 pm in reply to: How to ? Slowly and randomly stars appear

    Horning in always welcome. 🙂

    Dan

  • Dan Ebberts

    May 1, 2006 at 7:00 pm in reply to: How to ? Slowly and randomly stars appear

    Horning in always welcome. 🙂

    Dan

  • Dan Ebberts

    May 1, 2006 at 5:05 pm in reply to: How to ? Slowly and randomly stars appear

    This might give you some ideas.

    This opacity expression will make your layers turn on exponentially:

    dur = 3; // time for all layers to appear (seconds)
    num = 300; // total number of layers

    idx = Math.exp((time/dur)*Math.log(num)) – 1;
    if (idx >= index) 100 else 0

    This position expression will position them randomly within the comp:

    seedRandom(index,true);
    random([0,0],[thisComp.width,thisComp.height])

    Apply those two expressions to a star layer and duplicate it 299 times and preview it.

    Dan

  • Dan Ebberts

    May 1, 2006 at 5:05 pm in reply to: How to ? Slowly and randomly stars appear

    This might give you some ideas.

    This opacity expression will make your layers turn on exponentially:

    dur = 3; // time for all layers to appear (seconds)
    num = 300; // total number of layers

    idx = Math.exp((time/dur)*Math.log(num)) – 1;
    if (idx >= index) 100 else 0

    This position expression will position them randomly within the comp:

    seedRandom(index,true);
    random([0,0],[thisComp.width,thisComp.height])

    Apply those two expressions to a star layer and duplicate it 299 times and preview it.

    Dan

  • Dan Ebberts

    May 1, 2006 at 1:48 pm in reply to: Question for Dan Ebberts

    It looks like Globat has resolved their problem and my site is back on the air.

    Dan

Page 1024 of 1081

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