Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions looping text Array

  • looping text Array

    Posted by Christian Guertler on February 9, 2016 at 1:30 pm

    Im trying to loop a text Array in AE expressions, but it only works with small letters or whole words.
    Expression is to change source text of a text-field.

    Three examples posted below.

    I’m using AE CC on Windows 10.

    //working:
    var liste = new Array('a','b','c');

    //also working (Array replaced):
    //var liste = new Array('Anton','Berta','Cesar');

    //not working (array replaced):
    //var liste = new Array('A','B','C');

    var se = Math.floor(time);
    var m = se % 3;
    liste[m];

    Christian Guertler replied 10 years, 6 months ago 3 Members · 3 Replies
  • 3 Replies
  • Xavier Gomez

    February 9, 2016 at 3:44 pm

    What is wrong with the third example (‘A’, ‘B’, ‘C’) ?
    Can you post the error, if any, or tell which misbehaviour you observe ?

  • Kalleheikki Kannisto

    February 9, 2016 at 8:21 pm

    I see nothing wrong with the code and it works just fine here.

  • Christian Guertler

    February 16, 2016 at 1:51 pm

    sorry, but after restarting machine/after effects each of my posted code is working !?!
    No errors occur now.

    Christian

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