Forum Replies Created

Page 5 of 13
  • Yoan Boisjoli

    November 13, 2024 at 2:41 am in reply to: AE2024.6.2 – Expression Removing Second Font in line

    if you ever consider upgrading, here’s an expression that works for having 2 different fonts. I also added an option for controlling the font size of the cursor:

    var X = text.sourceText;

    var F = Math.round(time * effect("Blink Speed")("Slider") % 1);

    var L = X.length;

    var T = time * effect("Speed")("Slider") - effect("Start At")("Slider") * effect("Speed")("Slider");

    // Define the main text and cursor with distinct styles

    var baseStyle = X.style.setFont("Helvetica-Bold"); // Main font

    var cursorFont = "CourierBOLD"; // Cursor font

    var Cursor = " ";

    if (F == 1 || T > 0) Cursor = "|";

    if (T >= L) Cursor = " ";

    // Combine the text with the cursor

    var displayText = T > 0 ? X.substr(0, T) + Cursor : Cursor;

    // Apply styling

    var styledText = baseStyle.setText(displayText);

    // Apply the cursor font style only to the cursor portion

    if (Cursor.trim() != "") {

    styledText = styledText.setFont(cursorFont, displayText.length - Cursor.length, Cursor.length).setFontSize(100, displayText.length - Cursor.length, Cursor.length);

    }

    // Return the final styled text

    styledText;

  • Yoan Boisjoli

    November 13, 2024 at 2:13 am in reply to: AE2024.6.2 – Expression Removing Second Font in line

    Hi Lukasz! So you would like to have a different font for the cursor without upgrading to the new After Effects 2025 which supports the per character expression styling?

  • Yes, as you can see, the word “effect” is not changed. By holding “Alt” while dragging, or simply using the effect’s index, you make it universal. When I do this, the Expression Universalizer script doesn’t change it. I guess it recognizes that it’s already compatible.

    So in the Spanish version, it looks like this:

    // Native languagethisComp.layer("myLayer").effect("myCtrl 2")(1);
  • Yoan Boisjoli

    November 7, 2024 at 2:25 pm in reply to: Adjusting Propagation Time Span

    Hey Luke, another thing you could check is make sure the frame rate of the composition matches the frame rate of the footage. Sometimes mismatch can lead to details like that.

  • Yoan Boisjoli

    November 7, 2024 at 1:24 am in reply to: Offset animation, then loopOut.

    Alright I got something like that to work. I’m animating the slider with hold keyframes but feel free to try something else. I’m joining a screencast of how it’s behaving and my ae file also.

    // Time Offset from Slider
    var offset = effect("Slider Control")("Slider")/10; //dividing it by 10 becasue it's sensitive
    // Total duration of the loop (from first to last keyframe)
    var firstKeyTime = key(1).time;
    var lastKeyTime = key(numKeys).time;
    var loopDuration = lastKeyTime - firstKeyTime;
    // Current Time adjusted by the offset
    var adjustedTime = time - offset;
    // Calculate the looped time
    var loopedTime = (adjustedTime - firstKeyTime) % loopDuration + firstKeyTime;
    // Ensure loopedTime doesn't go below the first keyframe time
    loopedTime = (loopedTime < firstKeyTime) ? firstKeyTime : loopedTime;
    // value at the looped time
    valueAtTime(loopedTime);


  • Yoan Boisjoli

    November 7, 2024 at 12:45 am in reply to: Offset animation, then loopOut.

    Hi Griffin! Is the property only one value or an array of 2 or more?

  • What I do is hold ‘Alt’ while pickwhipping a property, which makes it universal by addressing the index. However, at the end of a project, when I need to make it available in any language, I use the script Expression Universalizer.

  • If you set up a paragraph text box in After Effects, you can use an expression on sourceText to pull in text from your CSV and it’ll split the lines automatically to fit within the box. Something like this:

    txt = footage("yourCSVfile.csv").dataValue([0, 0]); // Change this to point to your CSV file and correct cell

    txt;

  • Hi Matthew! Are you talking about a paragraph text box?

    In after effects if you simply drag a square with the text tool you can make a paragraph text box.

    Let me know if this is what you are referring to.

    Cheers.

  • There’s also this tutorial where it’s well explained:

    https://youtu.be/flnRYVMbMmQ?si=Ejxt5r98d4XQY7wb

    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.

Page 5 of 13

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