Forum Replies Created

Page 44 of 1081
  • Dan Ebberts

    June 17, 2023 at 6:40 pm in reply to: Changing the font style with Dropdown Menu Control

    You have the expression engine set to Legacy Extendscrpt.

    set File > Project Settings > Expressions > Expressions Engine to JavaScript.

  • Dan Ebberts

    June 17, 2023 at 6:28 pm in reply to: Changing the font style with Dropdown Menu Control

    Sorry, I missed the fact that you had the menu control on a separate layer. Try changing the first line to this:

    m = thisComp.layer("CTRL").effect("LANGUAGE")("Menu");
  • Dan Ebberts

    June 17, 2023 at 6:03 pm in reply to: Changing the font style with Dropdown Menu Control

    You can do it, but your expression has to contain the actual font names (which may not match exactly the names in your dropdown). So the expression might look like this for “Arial”, “Bookman Old Style”, and “Lucida Console”, for example:

    m = effect("LANGUAGE")("Menu").value;
    switch(m){
    case 1:
    font = "ArialMT";
    break;
    case 2:
    font = "BookmanOldStyle";
    break;
    case 3:
    font = "LucidaConsole";
    break;
    default:
    font = "ArialMT";
    break;
    }
    style.setFont(font)
  • Dan Ebberts

    June 16, 2023 at 12:50 pm in reply to: Link counters between compositions

    Assuming that your main comp is named “Main” and that each of your timer comps has a unique name, something like this should work:

    L = comp("Main").layer(thisComp.name);
    offset = L.startTime;
    currentTime = time + offset;
    minutes = Math.floor(currentTime / 60);
    seconds = Math.floor(currentTime % 60);
    minutesText = minutes < 10 ? '0' + minutes : minutes;
    secondsText = seconds < 10 ? '0' + seconds : seconds;
    minutesText + ":" + secondsText;
  • Dan Ebberts

    June 15, 2023 at 6:33 am in reply to: Auto movement Y axis on outpoint

    What does the animation look like (is it keyframed)? A screen shot of your timeline showing the animation would be helpful.

  • You’re probably running into integer overflow on the Evolution property. Try it this way:

    posterizeTime(4);
    (time*800)%32768

    You probably won’t notice where it repeats (where it used to stop). If you do, we may have to come up with some kind of blend operation.

  • Dan Ebberts

    June 12, 2023 at 5:08 pm in reply to: Essential Graphics and audio properties

    As far as I know, audio still isn’t supported in Essential Graphics.

  • Dan Ebberts

    June 12, 2023 at 1:59 pm in reply to: createPath and pixel ratios

    Try it this way:

    w = thisComp.width*thisComp.pixelAspect;
    h = thisComp.height;
    createPath(points = [[0,0], [w,h]], inTangents = [], outTangents = [], isClosed = false)
  • Dan Ebberts

    June 10, 2023 at 6:28 pm in reply to: Change solid color with script in AE 2023

    Try it this way:

    app.project.activeItem.layer(1).source.mainSource.color = [50/255,50/255,50/255];
  • This works for me:

    p = [];
    for (i = 1; i <= 11; i++){
    L = thisComp.layer(i);
    p.push(fromComp(L.toComp(L.anchorPoint)));
    }
    createPath(p,[],[],true)
Page 44 of 1081

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