Forum Replies Created

Page 121 of 1081
  • Try replacing the last line with this:

    time < t2 ? ease(time,t1,t2,v1,v2) : ease(time,t3,t4,v2,v1);
  • Dan Ebberts

    February 10, 2021 at 6:01 am in reply to: Unable to get value at previous frame

    Well that’s a lot easier, and very do-able. Come back if you get stuck.

  • Dan Ebberts

    February 9, 2021 at 6:55 pm in reply to: Unable to get value at previous frame

    That’s correct, but there are usually work-arounds. The most drastic one (which may be what you need) is for your expression to loop through all previous frames to re-calculate everything the expression has done on previous frames. The obvious downside is that the expression will eventually bog down because it has to do more and more calculations at each frame.

  • Dan Ebberts

    February 9, 2021 at 5:26 pm in reply to: Unable to get value at previous frame

    I’m not sure exactly what you’re trying to do, but this should get you the value of the property with the expression at the previous frame:

    valueAtTime(time-thisComp.frameDuration)

    Remember though, this will be the pre-expression value, not the value calculated by the expression at the previous frame. I apologize if you already knew that.

  • Dan Ebberts

    February 7, 2021 at 11:21 pm in reply to: Adding Sliders to Scale

    For any expression, value refers to the pre-expression, or keyframed value of the property. If the property has multiple dimensions, like scale or position, value is an array. So for scale, value[0] refers to the x value and value[1] refers to the y value. If you wanted the sliders to modify your keyframed value, you could do something like this:

    x = effect("Slider Control")("Slider");

    y = effect("Slider Control 2")("Slider");

    [value[0]*x/100,value[1]*y/100]

  • Dan Ebberts

    February 7, 2021 at 9:17 pm in reply to: hellow guys

    I’m not sure, but maybe like this:

    if(thisComp.layer("subtitle").effect("Checkbox Control")("Checkbox").value){

    x = thisComp.layer("Effect").effect("Twiggle_Time")("Slider");

    y = thisComp.layer("Effect").effect("Twiggle_Value")("Slider");

    [x ,y];

    }else

    value;

  • Dan Ebberts

    February 6, 2021 at 5:12 pm in reply to: Adding Sliders to Scale

    I think this does what you want:

    x = effect("Slider Control")("Slider");

    y = effect("Slider Control 2")("Slider");

    [x,y]

  • Dan Ebberts

    February 5, 2021 at 8:18 pm in reply to: Debugging expressions: exiting from typing midway?

    Enter on the numeric keypad.

  • As you’ve discovered, once you apply an expression to Source Text, all characters get the formatting of the first character. Unfortunately, that’s just how it works.

  • Dan Ebberts

    January 31, 2021 at 12:28 pm in reply to: Loop Wiggle expression only one axis

    I can’t think of any way to make the Wiggle Transform loop. You could apply this to the built-in shape specific Transform for Position to get a looping wiggle for x only:

    freq = 1;

    amp = 110;

    loopTime = 3;

    t = time % loopTime;

    wiggle1 = wiggle(freq, amp, 1, 0.5, t);

    wiggle2 = wiggle(freq, amp, 1, 0.5, t - loopTime);

    w = linear(t, 0, loopTime, wiggle1, wiggle2);

    [w[0],value[1]]

Page 121 of 1081

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