Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to link letter to time remap

  • How to link letter to time remap

    Posted by Igor Stikic on May 10, 2013 at 11:27 am

    Hi,

    I would like to make a template. In one composition I have a sequence of the letters (scanned newspaper letters 1 letter = 1 image) by 1 second. Is it possible to link that time remap to the source text. They may be linked to the slider so for his value 1-5 I get letters from A-E (or time remap 01:00-05:00). Can I achieve that when I type in the text layer for example “B” time remap goes on 2 seconds for compositions in which are the letters?

    Thanks in advance

    Igor Stikic

    Igor Stikic replied 13 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    May 10, 2013 at 3:12 pm

    You could use something like this:

    textIdx = 0;
    txt = thisComp.layer(“your text layer”).text.sourceText;
    txt.charCodeAt(textIdx)-65;

    So if your text layer was “ABCDE”, the result of this expression would give you 0 for textIdx=0, 1 for textIdx = 1, etc. You’d need more code if your text can have anything other than capital letters though. For example, spaces, lower case letters, special characters, or numbers will mess things up and you’d need a more robust solution.

    Dan

  • Igor Stikic

    May 13, 2013 at 8:02 am

    Thanks Dan for the quick and effective response. I appreciate it. Are you able to write the Expression for small caps because the uppercase in AE excluding preview. If is not a problem to insert and space. If it’s complicated, we will stay on this.
    Thank you very much

    Igor Stikic

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