Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Display text every 5 seconds

  • Display text every 5 seconds

    Posted by Sebi Wallheim on November 1, 2012 at 1:04 pm

    Hi,

    i like to display every 5 seconds text.

    my 1.txt file:

    txt = "69;76;79;78;81;84;85;85;74"

    my Expression: (found on this forum)

    myPath = "/C/Users/sh/desktop/1.txt";
    try{
    $.evalFile (myPath);
    mySplit = txt.split(";");
    f = timeToFrames()
    mySplit[Math.min(f,mySplit.length-1)]
    }catch (err){
    "file not found"
    }

    This displays the text every Frame…

    thanks
    Sebi

    PS: sorry for my bad english!

    Sebi Wallheim replied 13 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 1, 2012 at 3:08 pm

    Try it this way:


    myPath = "/C/Users/sh/desktop/1.txt";
    try{
    $.evalFile (myPath);
    mySplit = txt.split(";");
    t = Math.floor(time/5);
    mySplit[Math.min(t,mySplit.length-1)]
    }catch (err){
    "file not found"
    }

    Dan

  • Sebi Wallheim

    November 1, 2012 at 3:10 pm

    Thanks! It works!

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