Forum Replies Created

Page 29 of 1081
  • Dan Ebberts

    March 17, 2024 at 3:18 pm in reply to: Move text layer X pixels on every marker

    A little more complicate, but not much:

    easeFrames = 6;
    s = text.sourceText.style;
    leading = s.autoLeading ? s.fontSize*1.2 : s.leading;
    m = marker;
    n = 0;
    y = 0;
    if (m.numKeys > 0){
    n = m.nearestKey(time).index;
    if (time < m.key(n).time) n--;
    }
    if (n > 0){
    t = time - m.key(n).time;
    easeDur = framesToTime(easeFrames);
    y = (n-1)*leading + ease(t,0,easeDur,0,leading);
    }
    value - [0,y]
  • Dan Ebberts

    March 17, 2024 at 1:57 pm in reply to: Move text layer X pixels on every marker

    Hmmm… It works fine for me. It’s a position expression. It would complain if you’ve separated dimensions, but I think it would be a different error. Can you post a screen shot showing the expression?

  • Dan Ebberts

    March 16, 2024 at 9:49 pm in reply to: whole number slider

    Did you give any thought to creating a pseudo effect slider?

  • Dan Ebberts

    March 16, 2024 at 7:41 pm in reply to: whole number slider

    Are you saying you need help with this, or do you have what you need?

  • Dan Ebberts

    March 14, 2024 at 6:57 pm in reply to: Move text layer X pixels on every marker

    I’d start with something like this:

    leading = text.sourceText.style.leading;
    m = marker;
    n = 0;
    if (m.numKeys > 0){
    n = m.nearestKey(time).index;
    if (time < m.key(n).time) n--;
    }
    y = n*leading;
    value - [0,y]
  • Dan Ebberts

    March 12, 2024 at 10:52 pm in reply to: Sync Drop down menu with an effect drop down menu

    You can put an expression like this on the Preset property to connect it to a dropdown menu, and it will change the preset name as expected, but it doesn’t seem to update the rendered result:

    m = effect("Dropdown Menu Control")("Menu").value;
    switch(m){
    case 1:
    r = 3; // Are Reactor
    break;
    case 2:
    r = 4; // Cellular
    break;
    case 3:
    r = 5; // Burning
    break;
    case 4:
    r = 6; // Core
    break;
    case 5:
    r = 7; // Electric
    break;
    default:
    r = 1; // Default
    break;
    }
    r
  • Dan Ebberts

    March 12, 2024 at 8:29 pm in reply to: Sync Drop down menu with an effect drop down menu

    I don’t think there’s any way to access the names of the effect menu items, either through expressions or scripting, if that’s what you mean.

  • Dan Ebberts

    March 12, 2024 at 8:13 pm in reply to: After Effects mogrt force curly quotes

    This seems to work:

    value.replace(/(^|\s)(")/g, "$1“").replace(/"/g, "”");
  • Dan Ebberts

    March 10, 2024 at 1:08 am in reply to: Trigger scale with markers

    Try it this way:

    In = thisLayer.marker.key(1).time;
    Out = thisLayer.marker.key(2).time;
    dur = 0.2;
    s = time < (In +Out)/2 ? linear(time, In-dur, In, 0, 100) : linear(time, Out, Out + dur, 100, 0);
    [s,s]
  • Dan Ebberts

    March 9, 2024 at 6:51 pm in reply to: Opacity triggered by layer’s name

    I think I’d set it up like this:

    a = 0;
    b = 3;
    n = "3 4";
    val = 0;
    for (i = 1; i <= thisComp.numLayers; i++){
    if (thisComp.layer(i).name.substr(a,b) == n){
    val = 100;
    break;
    }
    }
    val
Page 29 of 1081

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