Forum Replies Created

Page 34 of 1081
  • Dan Ebberts

    January 13, 2024 at 12:54 am in reply to: Audio Amplitude and Saber slider

    Try this:

    triggerVal = 39;
    a = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
    t = 0;
    f = 0;
    while (f <= timeToFrames(time)){
    if (a.valueAtTime(framesToTime(f)) >= triggerVal){
    t = time - framesToTime(f);
    if (t <= 30) break;
    f += timeToFrames(30);
    }
    f++;
    }
    t > 30 ? 0 : linear(t,0,30,0,100)
  • Dan Ebberts

    January 12, 2024 at 12:38 am in reply to: Erroneous Expression Errors?

    I think it’s most likely that your entered text is not quite exactly the same as the pick-whipped version. That can easily happen if you copy and paste text, where you can pick up curly quotes instead of straight quotes or an en dash instead of a hyphen (minus sign). It’s a different story, of course, if you’re typing directly into the expression text field, but it would still help to see an example of what’s happening.

  • Dan Ebberts

    January 11, 2024 at 5:23 am in reply to: Erroneous Expression Errors?

    Can you post an example screen shot that shows the expression and the error message?

  • I think it might just be a time remapping expression like this for the rush layer:

    L = comp("MASTER").layer(thisComp.name);
    linear(time,L.inPoint,L.outPoint,0,L.outPoint-L.inPoint);
  • Dan Ebberts

    January 8, 2024 at 5:00 pm in reply to: Audio Amplitude and Saber slider

    Like this maybe:

    triggerVal = 39;
    a = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
    t = 0;
    for (f = 0; f <= timeToFrames(time); f++){
    if (a.valueAtTime(framesToTime(f)) >= triggerVal){
    t = time - framesToTime(f);
    break;
    }
    }
    linear(t,0,30,0,100)
  • Dan Ebberts

    January 3, 2024 at 7:58 pm in reply to: Add 10% brightness to shape layer fill HSB

    Maybe like this:

    c = thisComp.layer("Shape Layer 1").content("Rectangle 1").content("Fill 1").color;
    hsl = rgbToHsl(c);
    newL = Math.min(hsl[2]*1.1,1);
    hslToRgb([hsl[0],hsl[1],newL,hsl[3]])
  • Dan Ebberts

    December 21, 2023 at 4:29 pm in reply to: Position based on dropdown selection

    This should be close:

    menu = effect("Dropdown Menu Control")("Menu");
    transitionDuration = framesToTime(10);
    positions = [[960, 800],[150, 150],[1340, 700]];
    val = positions[menu.value - 1];
    if (menu.numKeys > 0){
    n = menu.nearestKey(time).index;
    if (time < menu.key(n).time) n--;
    if (n > 1){
    t1 = menu.key(n).time;
    t2 = t1 + transitionDuration;
    v1 = positions[menu.key(n-1).value - 1];
    v2 = positions[menu.key(n).value - 1];
    val = ease(time,t1,t2,v1,v2);
    }
    }
    val
  • Dan Ebberts

    December 21, 2023 at 7:28 am in reply to: Position based on dropdown selection

    I think if you provide more details on how you want it to work, you might get more action. If you could answer questions like when exactly does the animation take place, and what happens before the first keyframe, that would be helpful.

  • Dan Ebberts

    December 14, 2023 at 8:06 pm in reply to: Offset blinking expression

    Try changing this line:

    var blinking = Math.abs(Math.sin(time * cursorSpeed));

    to this:

    var blinking = Math.abs(Math.sin((time-anyTime) * cursorSpeed));
  • Starting simple, this will ramp up the amplitude of the wiggle over the duration defined by tRamp:

    freq = 5;
    amp = 200;
    tStart = 0;
    tRamp = 5;
    a = linear(time,tStart,tStart+tRamp,0,amp);
    wiggle(freq,a)
Page 34 of 1081

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