Forum Replies Created

Page 75 of 1081
  • Dan Ebberts

    October 7, 2022 at 3:37 am in reply to: 2 text layers adapting to the x Size of a shape layer

    Maybe something like this:

    w1 = thisComp.layer("Name").sourceRectAtTime().width;
    w2 =thisComp.layer("Job tite").sourceRectAtTime().width;
    Math.max(w1,w2)
  • Dan Ebberts

    October 3, 2022 at 4:46 pm in reply to: Repeat sourcetext from another layer

    You just need to move a left paren in the last line, like this:

    (comp("Build Comp").layer("ARTIST").text.sourceText.repeat(X) + "\n").repeat(Y)
  • Dan Ebberts

    October 1, 2022 at 11:46 pm in reply to: Audio React to Color

    What do you mean exactly? It sounds like you have something in mind, but it’s not clear from your description.

  • Dan Ebberts

    October 1, 2022 at 4:56 pm in reply to: Source text rotation limited to 360 degrees

    I can’t quite picture what you mean exactly.

  • Dan Ebberts

    October 1, 2022 at 3:57 pm in reply to: Source text rotation limited to 360 degrees

    This should work:

    (rotation%360).toFixed(0);
  • Dan Ebberts

    September 30, 2022 at 3:02 pm in reply to: loopIn & loopOut a linear() expression

    % gives you the remainder of a division operation. So 10.5%3, for example, would give you 1.5

  • Dan Ebberts

    September 30, 2022 at 2:46 pm in reply to: loopIn & loopOut a linear() expression

    I think this might be close to what you’re looking for:

    m1 = thisLayer.marker.key(1).time;
    m2 = thisLayer.marker.key(2).time;
    pos1 = 0;
    pos2 = 10;
    d = m2 - m1;
    offset = d - m1%d;
    t = (time + offset)%d;
    linear(t,0,d,pos1,pos2)
  • Dan Ebberts

    September 28, 2022 at 6:00 pm in reply to: Fade in and out based on markers

    This should work:

    fadeDur = .5;
    m = marker;
    n = 0;
    val = value;
    if (m.numKeys == 1){
    t1 = m.key(1).time;
    val = ease(time,t1,t1+fadeDur,0,value);
    }else if (m.numKeys > 1){
    t1 = m.key(1).time;
    t2 = m.key(2).time;
    if (time < t1 + fadeDur){
    val = ease(time,t1,t1+fadeDur,0,value);
    }else{
    val = ease(time,t2-fadeDur,t2,value,0);
    }
    }
  • Dan Ebberts

    September 27, 2022 at 12:04 am in reply to: Changing the Trim Path style in a script?

    This quick test worked for me:

    app.project.activeItem.layer(1).property("ADBE Root Vectors Group").property("ADBE Vector Filter - Trim").property("ADBE Vector Trim Type").setValue(2);
  • Dan Ebberts

    September 25, 2022 at 2:27 pm in reply to: Disabled number used Dropdown

    I still think it’s probably do-able, using the technique I described previously, but I fear it’s too complex to easily come up with a drop-in solution here, in this forum.

Page 75 of 1081

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