Forum Replies Created

Page 48 of 1081
  • Dan Ebberts

    May 4, 2023 at 6:01 am in reply to: multiple linear() in one expression.

    Sure, but it depends on what you’re trying to do. I’m having a hard time thinking of a scenario where that would be useful.

  • Dan Ebberts

    May 3, 2023 at 3:42 pm in reply to: multiple linear() in one expression.

    You’d probably set that up like this:

    time < 3 ? linear(time,0,1,10,20) : linear(time,3,4,20,30)
  • Dan Ebberts

    April 30, 2023 at 11:29 pm in reply to: Get Name of Text Animator?

    When trying to suss out the property hierarchies for text and shape layers, I always grab Jeff Almasol’s wonderful rd_GimmePropPath.jsx script. I don’t know if it’s still available anywhere, but I use it all the time.

  • Dan Ebberts

    April 30, 2023 at 10:52 pm in reply to: Get Name of Text Animator?

    I think you’re close. I think it’s:

    thisProperty.propertyGroup(3).name.length

    I believe there is a hidden Selectors group in there.

  • Dan Ebberts

    April 30, 2023 at 6:53 pm in reply to: How to get width or height of a UI element?

    Have you tried myGroup.bounds.width?

  • Dan Ebberts

    April 26, 2023 at 3:09 pm in reply to: combining multiple if else statements

    I might do it like this, but it doesn’t really save much unless you added more layers:

    L = [  "1",    "2",    "3",  "4",  "5"];
    V = [-133.2, -57.2 , -15.2, 61.2, 61.2];
    val = 179.2;
    for (i = 0; i < L.length; i++){
    if (comp("EDIT").layer(L[i]).active){
    val = V[i];
    break;
    }
    }
    val
  • I think you just need to replace the last line with this (not tested though):

    tMax = Math.max(t.width,t2.width,t3.width);
    [tMax,t.height]
  • Dan Ebberts

    April 24, 2023 at 2:10 pm in reply to: Delay + index PropertyGroup on Text Animator

    You can get the expression selector movements to overlap if you decouple move time from the delay, like this maybe:

    delay = 5; //number of frames to delay
    dur = 7;
    d0 = delay*thisComp.frameDuration*(textIndex-1);
    ease(time,d0,d0+framesToTime(dur),100,0)

    But yes, the technique appears to be clamped to the range from -100 to 100, so it’s only suitable for specific cases.

  • Dan Ebberts

    April 23, 2023 at 8:56 pm in reply to: Delay + index PropertyGroup on Text Animator

    Since it’s all one text layer, did you consider using a single Expression Selector, where you could use something like this for the Amount:

    delay = 5; //number of frames to delay
    d = delay*thisComp.frameDuration*(textIndex);
    d0 = delay*thisComp.frameDuration*(textIndex-1);
    ease(time,d0,d,100,0)
  • Dan Ebberts

    April 23, 2023 at 5:53 pm in reply to: Time remapping triggered by marker

    Something like this should work:

    m = thisComp.layer("MARKER").marker;
    n = m.nearestKey(time).index;
    t = 0;
    if (time < m.key(n).time) n--;
    if (n > 0){
    for(i = n; i > 0; i--){
    if (m.key(i).comment == name){
    t = time - m.key(i).time;
    break;
    }
    }
    }
    t
Page 48 of 1081

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