Forum Replies Created

Page 64 of 277
  • Alternatively, You could add the different looks as keyframes in just 1 effect.

    And then use expressions on those keyframes to choose the value of key(n)

    with n being controlled by a slider or pop-up selector

  • Filip Vandueren

    January 21, 2021 at 9:51 am in reply to: Technique for Animated Number Countdown with Commas

    Here’s how to do things like this in the new Javascript engine:

    var num = effect("Point Control")("Point")[0];
    num.toLocaleString('en-EN', {style: "currency", currency: "USD"});

    see here for all possible options:
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat

  • Filip Vandueren

    January 20, 2021 at 6:20 pm in reply to: Fractal noise to displace position of layer

    Yes, you’re sampling the image and that gives 4 values in an array [r, g, b, a]

    Position needs 2: [x,y].

    So you’ll have to do some kind of calculation on the color to translate it into a position-value.

    For example add this final line:

    [x[0], x[1]]*20;

    And it will use red and green (0th and 1st element of x] with white moving 20px, black zero…

  • Filip Vandueren

    January 20, 2021 at 1:48 pm in reply to: space symbol ” ” in Ae expressions

    Bonus:

    If you have your original Text in another Layer, you can automatically calculate the optimal number of repeats by dividing the approximate length of the Path by the width of the original Text.

    Like this:

    originalTxt = thisComp.layer("Original Text").text.sourceText;
    txt = originalTxt.value+" \u200B";
    w = thisComp.layer("Original Text").sourceRectAtTime().width;
    // get approximate length of path
    l = 0;
    precision = 10;
    txtPath = mask(text.pathOption.path.toString()).maskPath;
    p0=txtPath.pointOnPath(0, t = time);
    for (i=1; i<=precision; i++) {
    p1 = txtPath.pointOnPath(i/precision, t = time)
    l+=length(p0, p1);
    p0=p1;
    }
    repeats = Math.max(1,Math.floor(l/w));
    style = originalTxt.style; // make sure we also get formatting of original text
    style.setText(txt.repeat(repeats));

    See an example here:

    https://imgur.com/GMKnST8

    View post on imgur.com

  • Filip Vandueren

    January 20, 2021 at 1:06 pm in reply to: space symbol ” ” in Ae expressions

    OK, this works:

    txt = text.sourceText+" \u200B";
    txt.repeat(10);

    Unicode character 200B is a zero-width space, after the regular space, it doesn’t interfere with anything in the middle repeats, and it fixes the final margin.

  • Filip Vandueren

    January 20, 2021 at 11:02 am in reply to: space symbol ” ” in Ae expressions

    Right, I understand better now.

    Is it always 1 word that is repeated or a sentence of different words ?

  • Filip Vandueren

    January 20, 2021 at 9:49 am in reply to: Help please. Property Group Hierarchy.

    Hi Ahad,

    The Transform Property Group is at the same depth as the hidden Contents group.

    So “anchorPoint” has to count “Transform” as 1 level.

    And “Rectangle Path” would have to count invisible “Contents” as 1 level.

    Hope that’s clear.

    I suggest you use the script “gimmeproppath” to inspect the hierarchy.

    The website redefinedy.com where you can find the script is down, but I think you can still download from here:

    http://web.archive.org/web/20201127123358/http://redefinery.com/ae/rd_scripts/

  • Filip Vandueren

    January 20, 2021 at 9:34 am in reply to: space symbol ” ” in Ae expressions

    You could add 1 character that has the same width as the space (could be “-“ or “_” or “m”, whatever; it depends on the font and you can experiment to find the best one.).

    And then use a text animator to select just that 1 character and set its opacity to 0

  • Filip Vandueren

    January 19, 2021 at 12:26 pm in reply to: Fractal noise to displace position of layer

    Check this tutorial based on one of Dan’s expressions:

    https://www.youtube.com/watch?v=1UaZNcVobhg&feature=youtu.be

    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.

  • Filip Vandueren

    January 19, 2021 at 12:05 pm in reply to: Assume new framerate to imported sequence

    Hi Tom,

    try this:

    var importFolder = new File ("c:\\"); // Set default import folder
    var myImportFolder = importFolder.openDlg("Select files to import","*.tif",true).toString(); /// Select import folder path
    var myImportOptions = new ImportOptions(File(myImportFolder)); /// Import options
    myImportOptions.importAs = ImportAsType.FOOTAGE;
    myImportOptions.sequence = true; /// Import sequence
    myImportOptions.forceAlphabetical = true; /// Force alphabetical
    var newSequence = app.project.importFile(myImportOptions); /// Set new import files to var
    newSequence.mainSource.conformFrameRate = 1; // force the imported file to have framerate 1
    app.executeCommand(2796); // do "New Comp from Selection"
    myComp = app.project.activeItem;
    // fix the things that weren't set by default
    myComp.name = newSequence.name;
    myComp.displayStartTime = 1;
    myComp.openInViewer();
Page 64 of 277

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