Forum Replies Created

Page 1023 of 1081
  • Dan Ebberts

    May 9, 2006 at 8:36 pm in reply to: scaling with expressions

    OK – try this:

    f1 = 10; // ramp on/off frames
    f2 = 3; // overshoot frames

    max = 80; //maximum scale value
    hold = 63; // hold scale value

    t1 = f1*thisComp.frameDuration;
    t2 = f2*thisComp.frameDuration;

    if (time <= inPoint + t1 + t2){ s = Math.min(linear(time,inPoint,inPoint+t1,0,max),linear(time,inPoint+t1,inPoint+t1+t2,max,hold)); }else{ s = linear(time,outPoint-t1,outPoint,hold,0); } [s,s] Dan

  • Dan Ebberts

    May 9, 2006 at 8:36 pm in reply to: scaling with expressions

    OK – try this:

    f1 = 10; // ramp on/off frames
    f2 = 3; // overshoot frames

    max = 80; //maximum scale value
    hold = 63; // hold scale value

    t1 = f1*thisComp.frameDuration;
    t2 = f2*thisComp.frameDuration;

    if (time <= inPoint + t1 + t2){ s = Math.min(linear(time,inPoint,inPoint+t1,0,max),linear(time,inPoint+t1,inPoint+t1+t2,max,hold)); }else{ s = linear(time,outPoint-t1,outPoint,hold,0); } [s,s] Dan

  • Dan Ebberts

    May 9, 2006 at 6:46 pm in reply to: scaling with expressions

    I’m not sure what your expression does, but I think this one does what you originally asked for:

    f = 10; // number of frames to ramp
    t = f*thisComp.frameDuration;
    s = Math.min(linear(time,inPoint,inPoint+t,0,100),linear(time,outPoint-t,outPoint,100,0));
    [s,s]

    Dan

  • Dan Ebberts

    May 9, 2006 at 6:46 pm in reply to: scaling with expressions

    I’m not sure what your expression does, but I think this one does what you originally asked for:

    f = 10; // number of frames to ramp
    t = f*thisComp.frameDuration;
    s = Math.min(linear(time,inPoint,inPoint+t,0,100),linear(time,outPoint-t,outPoint,100,0));
    [s,s]

    Dan

  • Like this:

    thisComp.layer(“Null 1”).position.valueAtTime(inPoint)

    Dan

  • Like this:

    thisComp.layer(“Null 1”).position.valueAtTime(inPoint)

    Dan

  • Dan Ebberts

    May 6, 2006 at 9:58 pm in reply to: Help! Problem with masks

    Can you post some images somewhere that demonstrate the problem?

    Dan

  • Dan Ebberts

    May 5, 2006 at 1:30 pm in reply to: Expression Speed ?

    I’m assuming you’ve just pickwhipped your layer’s position to a keyframed slider created by “Convert Audio to Keyframes”.

    To leave the layer in it’s original position and just offset it with the audio, you need to do something like this:

    amplitude = 5;
    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    value + [temp, temp]*amplitude

    Adjust “amplitude” to suit. Here’s another variation that just moves the layer up and down:

    amplitude = 5;
    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    value – [0, temp]*amplitude

    Etc. – you get the idea.

    Dan

  • Dan Ebberts

    May 5, 2006 at 1:30 pm in reply to: Expression Speed ?

    I’m assuming you’ve just pickwhipped your layer’s position to a keyframed slider created by “Convert Audio to Keyframes”.

    To leave the layer in it’s original position and just offset it with the audio, you need to do something like this:

    amplitude = 5;
    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    value + [temp, temp]*amplitude

    Adjust “amplitude” to suit. Here’s another variation that just moves the layer up and down:

    amplitude = 5;
    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    value – [0, temp]*amplitude

    Etc. – you get the idea.

    Dan

  • 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

Page 1023 of 1081

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