Forum Replies Created

Page 73 of 277
  • While Dan’s expression works perfectly for me.

    Your solution with the Nulls could use these simple expressions for the position of each Null like so:

    TopLeft:

    [0,0];

    TopRight:

    [thisComp.width, 0];

    BottomRight:

    [thisComp.width, thisComp.height];

    BottomLeft:

    [0, thisComp.height];

  • Filip Vandueren

    September 26, 2020 at 3:59 pm in reply to: Link frame values to audio amplitude

    Hi David,

    always using [#] as a result of your expressions doesn’t make sense from a javascript code perspective.
    It’s actually a quirk in After Effects that that works at all, I don’t remember a time when it was obligatory ?

  • Filip Vandueren

    September 25, 2020 at 10:53 am in reply to: Split Text and Save Style?

    it can’t be done with a script or expressions, those would lose individual styles.

    You can either do it manually on 3 copies of the text where your erase the other lines.

    Or with text-animators that set the opacity of lines to 0

  • Filip Vandueren

    September 25, 2020 at 10:51 am in reply to: Image in AE viewport looks better than final rendering.

    Hi Tyler, the upload here on the cow made it kind of blurry, hard to tell.

    But where does it look jagged, in a media player ?
    Does it look equally bad when you import the footage back into After Effects, a difference between different apps could be the case if you’re on a hiDPI screen.

    You could overlay your rendered image on top of the comp with difference blend mod and see what’s going on.

    If it was hard contrast between different colors it would be due to the 422 chroma subsampling, but here it’s clearly contrast in the Luma channels only…

    You’re positive it was 422 HQ and not a proxy/LT version ?

  • Something like this:

    thisComp = app.project.activeItem;
    selLayers = thisComp.selectedLayers;
    min_inPoint = Math.min.apply(0, selLayers.map(function (l) {return l.inPoint} ));
    max_outPoint = Math.max.apply(0, selLayers.map(function (l) {return l.outPoint} ));
    layers_duration = max_outPoint - min_inPoint;
    newComp = thisComp.layers.precompose(selLayers.map(function (l) {return l.index}), "precomp", true);
    for (l=1; l<=newComp.numLayers; l++) newComp.layer(l).startTime-=min_inPoint;
    newComp.duration = layers_duration;
    thisComp.selectedLayers[0].startTime = min_inPoint; // the precomp will now be the selected layer in our main comp
  • Filip Vandueren

    September 22, 2020 at 8:04 am in reply to: Expressions to sort numbers in descending order.

    I’d do that with leading 🙂

  • Filip Vandueren

    September 22, 2020 at 7:51 am in reply to: Expressions to sort numbers in descending order.

    Last line should be:

    sorted.join(“\r”);

    Which joins the elements of the array into a string with return-characters inbetween every element.

  • Filip Vandueren

    September 22, 2020 at 7:47 am in reply to: Expression for start time and animation time

    A few questions:

    Is every line on its own text layer?

    Or Is it multi-line text, if so: wrapped by a textbox, or manually wrapped with enters?

    Would you know the amount of lines beforehand and do you want as many separate sliders to controle each line.

    Or 1 slider that sets the delay globally?

  • Maybe you need accelX[0] ?

    Haven’t tested the code

  • Oops, second line was wrong:

    {
    var input = Window.prompt("Enter the desired subdivisions for Proportional grid (H,V)", "8,6");
    var dims = input.split(",");
    if (parseFloat(dims[0])>0) app.preferences.savePrefAsFloat("Main Pref Section v2", "Pref_ANIMGRID_CELLS_HORIZ",dims[0]);
    if (parseFloat(dims[1])>0) app.preferences.savePrefAsFloat("Main Pref Section v2", "Pref_ANIMGRID_CELLS_VERT v2",dims[1]);
    }
Page 73 of 277

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