Forum Replies Created

Page 38 of 1081
  • Dan Ebberts

    November 3, 2023 at 1:06 pm in reply to: Where to store metadata for layers?

    I use the layer comment field a lot ( myLayer.comment), which normally isn’t visible in the timeline unless you select that column to be displayed. The same for items in the project bin (myComp.comment, etc.)

  • Dan Ebberts

    November 2, 2023 at 8:32 pm in reply to: Wiggle expression in AE

    This might work, depending on what you have in mind:

    loopOut() + (wiggle(.4,150) - value)
  • Dan Ebberts

    November 2, 2023 at 5:12 pm in reply to: Controlling a Keyframe Value with Expressions

    Since your keyframes are linear, you could do something like this:

    sc=thisComp.layer("Controller").effect("Size")("Checkbox").value;
    sc ? linear(time,key(1).time,key(2).time,key(1).value,key(2).value - [25,25]) : value
  • Dan Ebberts

    October 29, 2023 at 6:41 am in reply to: Expression to scale text based on character

    That means to remove any carriage returns from the text. Otherwise textIndex will get messed up if your text has multiple lines.

  • Dan Ebberts

    October 28, 2023 at 7:09 am in reply to: Active Camera via scripting

    This will give you the active camera at the current time:

    app.project.activeItem.activeCamera
  • Dan Ebberts

    October 27, 2023 at 4:50 pm in reply to: Expression to scale text based on character

    You could try adding a Scale Animator to your text, set the Scale value to 50%, add an Expression Selector (and go ahead and remove the Range Selector), andset the Expression Selector’s Amount expression to this:

    txt = text.sourceText.value.replace(/\r/g,'');
    txt[textIndex-1] == "%" ? 100 : 0
  • This is a little better:

    freq = 1;
    amp = 600;
    period = 1;
    d = 3*period;
    seedRandom(index,true);
    t = time + random(d);
    n = Math.floor(t/d);
    p = t%d;
    if (p < period){
    tX = n*period + ease(p,0,period,0,period);
    tY = n*period;
    }else if (p < 2*period){
    tX = (n+1)*period;
    tY = n*period + ease(p,period,period*2,0,period);
    }else{
    tX = (n+1)*period;
    tY = (n+1)*period;
    }
    x = (wiggle(freq,amp,1,.5,tX)-value)[0];
    y = (wiggle(freq,amp,1,.5,tY)-value)[1];
    value + [x,y]
  • You could try something like this:

    freq = 1;
    amp = 500;
    period = 1;
    d = 3*period;
    seedRandom(index,true);
    t = time + random(d);
    n = Math.floor(t/d);
    p = t%d;
    if (p < period){
    tX = n*period + ease(p,0,period,0,1);
    tY = n*period;
    }else if (p < 2*period){
    tX = (n+1)*period;
    tY = n*period + ease(p,period,period*2,0,1);
    }else{
    tX = (n+1)*period;
    tY = (n+1)*period;
    }
    x = (wiggle(freq,amp,1,.5,tX)-value)[0];
    y = (wiggle(freq,amp,1,.5,tY)-value)[1];
    value + [x,y]
  • Dan Ebberts

    October 25, 2023 at 4:11 am in reply to: Flexible scale

    I would think so, but you’d have to define the rules for what should happen in such cases.

  • Dan Ebberts

    October 24, 2023 at 3:52 pm in reply to: Flexible scale

    A scale expression like this might be all you need:

    value*thisComp.width/1920
Page 38 of 1081

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