Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions New AE v25 Text Expression methods …

  • New AE v25 Text Expression methods …

    Posted by Roland R. kahlenberg
    on February 26, 2025 at 5:04 am

    I’m trying to understand how these work but haven’t been successful.

    setSpaceBefore()
    setSpaceAfter()
    setLeftMargin()
    setRightMargin()
    setHangingRoman()
    setLineJoin()

    Has anyone tried these and have sample/working code snippets to share?

    Yoan Boisjoli replied 2 weeks, 2 days ago 2 Members · 7 Replies
  • 7 Replies
  • Yoan Boisjoli

    February 26, 2025 at 2:01 pm

    Hey Roland !

    Haven’t tried all of them but here’s a great video to watch to grasp what some of the new features offers and how to use them !

    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.

  • Roland R. kahlenberg

    February 26, 2025 at 2:46 pm

    Hi Yoan, thanks for the link. I’ve been playing with it a bit cos I teach it in my After Effects course – just uploaded this sample – https://youtu.be/EjNxHIqJ5kU

    But those few I mentioned don’t seem to be doing anything when I try to them out. Do you know if the video you shared cover those Expression methods I mentioned?

    Cheers

    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.

  • Yoan Boisjoli

    February 26, 2025 at 3:55 pm

    That’s very cool Roland!

    As for these specific expressions, here’s what I found (I think some of them seem pretty useful)

    setSpaceBefore(value) – Sets the space before a paragraph.

    setSpaceAfter(value) – Sets the space after a paragraph.

    setLeftMargin(value) – Adjusts the left margin of a text box.

    setRightMargin(value) – Adjusts the right margin of a text box.

    setHangingRoman(value) – Toggles hanging punctuation (like quotes/punctuation outside the margin). true = enabled, false = disabled.

    setLineJoin(value) – Controls how multi-line text connects. Possible values:

    0 → Miter join (sharp corners)

    1 → Round join (rounded corners)

    2 → Bevel join (chopped corners)

    Is this what you were looking for?

  • Roland R. kahlenberg

    February 26, 2025 at 5:44 pm

    Thanks Yoan, I got that info from this URL – https://ae-expressions.docsforadobe.dev/text/style/?h=space#textstylesetfontsize

    And I tried them out but couldn’t get anything to move – like nothing was affected. Hence, my coming here to post. I thought code snippets that work for someone will be a good start.

    Cheers

  • Yoan Boisjoli

    February 26, 2025 at 8:42 pm

    I just tried setLeftMargin(value) and made it work by linking a slider to it. The margin suddenly was animated when adjusting the slider’s value. Here’s the code I used:

    marginValue = effect("Slider Control")(1).value;
    text.sourceText.style.setLeftMargin(marginValue);
  • Roland R. kahlenberg

    February 27, 2025 at 3:41 am

    Thanks for the info Yoan. And just as I thought!!! They only work when someone else uses them!!!

    😀

    On a serious note, did you try the others?

  • Yoan Boisjoli

    March 9, 2025 at 2:24 pm

    Hey Roland !

    haha yeah it’s always like that!

    No haven’t tried the other functions. I’m curious though, as soon as I have a bit of time on my hands, I’ll experiment with them !

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