Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to remove last letters from text

  • Expression to remove last letters from text

    Posted by Dario De angelis on October 1, 2016 at 10:54 pm

    Hi guys, I know that it is a stupid question but there is an expression that allow me to cut the last letters from a text?

    I tried with the
    text.sourceText.slice (4)
    expression but it cut all letters except last 4s.

    Dan Ebberts replied 9 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    October 1, 2016 at 11:53 pm

    One way:

    cut = 4;
    len = text.sourceText.length – cut;
    text.sourceText.substr(0,len)

    Dan

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