Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects animate character offset

  • animate character offset

    Posted by Incredible Bud on March 17, 2010 at 10:10 am

    Hello,

    I’m trying to make a text animation,so that the letters change randomly.
    but the tricky thing is : I just want them to change into the same 4 letters A,T,C and G (yes I am doing a DNA thing.) So that A become a T then a G…and so on.

    When I use the text >animate>character offset>character range : I only have 2 solutions
    Preserve case and digit give me the entire alphabet and unicode give the all signs
    How can I change that ? is it possible ?

    is there any other solutions ?

    Thanks a lot

    Matthieu

    Emily Scollon replied 13 years ago 3 Members · 3 Replies
  • 3 Replies
  • Incredible Bud

    March 17, 2010 at 3:28 pm

    Thanks dave.

    I’ll try that.

  • Darby Edelen

    March 17, 2010 at 9:44 pm

    If you only need these 4 characters to appear randomly you can apply this expression to the ‘Source Text’ property:

    c = ['A','C','G','T'];
    s = "";
    for(x=0; x < value.length; x++){ r = Math.floor(random(0, c.length)); s += c[r]; } s

    This will turn every character in text layer into a random selection of As, Cs, Gs and Ts on every frame. If you need more control over the changes of the text then your setup will be more complicated.

    Darby Edelen

  • Emily Scollon

    April 17, 2013 at 6:40 pm

    is there an expression do this if you needed the letters to stay in specific groups? I’m doing a similar project but the letters need to stay spelling words with spaces.

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