Forum Replies Created

Page 34 of 65
  • Andrei Popa

    March 26, 2020 at 7:48 am in reply to: Link checkboxes to Angle or Slider Control

    You could se this expressions to checkboxes, with different idx for each. Each checkbox will toggle on when the slider and the idx are equal.

    var idx = 1;
    var slider = thisLayer("Effects")("Slider Control")("Slider").value;
    slider==idx ? 1 : 0

    Andrei
    My Envato portfolio.

  • Andrei Popa

    March 26, 2020 at 7:44 am in reply to: Trim Path Expression question

    Could you post a print screen of the situation?

    Andrei
    My Envato portfolio.

  • Andrei Popa

    March 25, 2020 at 10:06 pm in reply to: Colour: numlayers/index

    This works great on my pc. However, since it is the i that gives you trouble, you can try changing it like this:

    n = thisComp.numLayers;
    h = 0
    s = 0;
    l = index/n;
    a = 0;
    HSL = [h,s,l,a];
    hslToRgb(HSL);

    Andrei
    My Envato portfolio.

  • You can define the font styles of Text 1 and Text 2. But Text 3 will not have 2 different text styles. It’s not yet possible to set multiple font styles to the same layer by expression. Hopefully Adobe will make that possible in a future update.

    Andrei
    My Envato portfolio.

  • Andrei Popa

    March 24, 2020 at 5:01 pm in reply to: One Expression to Push 2 objects apart

    I think you should first make the lines vertical and parent them to the NULL. Then rotate the null until they get in the position you want. Then add this to the x position property:

    The right one:
    var dist = thisComp.layer("Scale Null 2").effect("Slider Line Separator Control")("Slider");
    value+dist

    The left one:
    var dist = thisComp.layer("Scale Null 2").effect("Slider Line Separator Control")("Slider");
    value-dist

    Andrei
    My Envato portfolio.

  • Andrei Popa

    March 24, 2020 at 4:00 pm in reply to: One Expression to Push 2 objects apart

    Not sure about the whole setup but I think this expressions in the position property could solve your problem:

    For the right one:
    distance = thisComp.layer("Null 1").effect("Slider Control")("Slider")/2;
    value+distance

    For the left one:
    distance = thisComp.layer("Null 1").effect("Slider Control")("Slider")/2;
    value-distance

    Andrei
    My Envato portfolio.

  • Andrei Popa

    March 24, 2020 at 10:25 am in reply to: CEP Panel: Event Listener Layer Selection

    If you decide to create Script/Plugins for AE, you should get terminology correct.

    Script = program created in ExtendScript(JavaScript plus some additions to fit Adobe products). EcmaScript 3 standard.
    Extension = a script that works inside a web interface. I think you can use EcmaScript 6 inside the web part and EcmaScript 3 inside the script part.
    Plugin = a whole different league. Programmed in C++. You can access about anything in AE with those. But are much much more complicated than scripts or extensions.

    Now, for your answer.
    I don’t have much experience with Extensions but have a fair bit with scripts.
    And since an Extension is a script with web interface, I’m gonna take a wild guess and say no. I don’t think you can add things like layer.onSelect().

    If you are new to Extensions, this tutorial could help you understand how they work.
    https://www.youtube.com/watch?v=UXOvW659rek

    Andrei
    My Envato portfolio.

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Andrei Popa

    March 24, 2020 at 10:14 am in reply to: Convert Shape Layer object space to Comp Space

    I don’t think you need that information to create the links.
    I suggest you create a Path and add this expression to it. That way, you can have all the benefits from shapes(stroke width, color, dots, linecap etc)
    You can even create it in the same layer with the ellipses. If you create the Path in the same layer, add this expression to it:


    pos1 = content("Ellipse 1").transform.position;
    pos2 = content("Ellipse 2").transform.position;
    dots = [pos1,pos2];
    createPath(dots)

    If you want a different layer, make sure both have the same position(you can link the position of this second layer to the one with the ellipses) and add this expression to your Path:

    L=thisComp.layer("Ellipses");
    pos1 = L.content("Ellipse 1").transform.position;
    pos2 = L.content("Ellipse 2").transform.position;
    dots = [pos1,pos2];
    createPath(dots)

    Andrei
    My Envato portfolio.

  • Andrei Popa

    March 24, 2020 at 10:04 am in reply to: New Text Styling + Old Expression?

    To use a text generated by expressions, you need to use the .setText() function. I think this will fit your situation:

    style = thisComp.layer("FONT SOURCE").text.sourceText.style;

    input = thisComp.layer("SLIDER CONTROLS").effect("ANIMATION")("Slider");
    inputLow = 0;
    inputHigh = 100;
    outputLow = 0;
    outputHigh = thisComp.layer("SLIDER CONTROLS").effect("VALUE")("Slider");

    myText = Math.floor(linear(input,inputLow,inputHigh,outputLow,outputHigh));
    style.setText(myText)

    Andrei
    My Envato portfolio.

  • Andrei Popa

    March 24, 2020 at 9:46 am in reply to: if/else in an array

    It’s strange that it did not work in AE 2020. Maybe you had your project expressions engine set to Legacy ExtendScript.
    You can check that by going in File>Project Preferences>Expressions and set Engine to Legacy ExtendScript.

    I’m telling you this because in case you want to use any of the features introduced after AE 2018, you need to have the engine set to JavaScript.

    Andrei
    My Envato portfolio.

Page 34 of 65

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