Forum Replies Created

Page 1008 of 1081
  • A little late to the party, but here’s a fun thing to try. Add this expression to the diffuse and specular material options of your 3D layer:

    decay = .001; // speed of falloff
    d100pct = 200; // distance from light where falloff begins

    L = thisComp.layer(“Light 1”);

    d = length(L.position,position);
    if (d < d100pct){ value; }else{ value/Math.exp((d-d100pct)*decay); } The first parameter has the most effect on how fast layers get dark as they move away from the light. The advantages of this approach are that the layers don't become transparent and the effect is independent for each layer since the intensity of the light itself is not affected. Dan

  • Dan Ebberts

    August 24, 2006 at 8:59 pm in reply to: Continuously Scrolling Image Expression

    It works, but it should really be like this for a horizontal scroll:

    spd = 1.0; //scroll speed (pixels per second)

    [width,height]/2 + [time*spd,0]

    Or like this for a vertical scroll:

    spd = 1.0; //scroll speed (pixels per second)

    [width,height]/2 + [0,time*spd]

    Dan

  • Dan Ebberts

    August 24, 2006 at 8:59 pm in reply to: Continuously Scrolling Image Expression

    It works, but it should really be like this for a horizontal scroll:

    spd = 1.0; //scroll speed (pixels per second)

    [width,height]/2 + [time*spd,0]

    Or like this for a vertical scroll:

    spd = 1.0; //scroll speed (pixels per second)

    [width,height]/2 + [0,time*spd]

    Dan

  • Dan Ebberts

    August 24, 2006 at 8:43 pm in reply to: Continuously Scrolling Image Expression

    How about only one copy of the image with the Offset effect with this expression for Shift Center To:

    spd = 1.0; //scroll speed (pixels per second)

    [width,height]/2 + time*spd

    Dan

  • Dan Ebberts

    August 24, 2006 at 8:43 pm in reply to: Continuously Scrolling Image Expression

    How about only one copy of the image with the Offset effect with this expression for Shift Center To:

    spd = 1.0; //scroll speed (pixels per second)

    [width,height]/2 + time*spd

    Dan

  • Dan Ebberts

    August 23, 2006 at 3:07 am in reply to: Two Seperate Wiggles – Same results

    Add a seedRandom(seed) statement at the start of each expression (with a different seed value for each expression)

    Dan

  • Dan Ebberts

    August 23, 2006 at 3:07 am in reply to: Two Seperate Wiggles – Same results

    Add a seedRandom(seed) statement at the start of each expression (with a different seed value for each expression)

    Dan

  • Dan Ebberts

    August 22, 2006 at 11:19 pm in reply to: expression for showing layer marker text

    It looks like you have to go all the way back to 5.5 to get it to work. And of course, with 5.5 there weren’t text layers so there’s not much you can do with it. 🙂

    Dan

  • Dan Ebberts

    August 22, 2006 at 11:19 pm in reply to: expression for showing layer marker text

    It looks like you have to go all the way back to 5.5 to get it to work. And of course, with 5.5 there weren’t text layers so there’s not much you can do with it. 🙂

    Dan

  • Dan Ebberts

    August 22, 2006 at 4:34 am in reply to: expression for showing layer marker text

    Aharon,

    If they’re just numbered sequentially, this expression for source text will give the number of the most recent marker:

    L = thisComp.layer(“audio layer”);

    n = 0;
    if (L.marker.numKeys > 0){
    n = L.marker.nearestKey(time).index;
    if (L.marker.key(n).time > time){
    n–;
    }
    }
    if (n==0)”” else n

    Dan

Page 1008 of 1081

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