Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Benoit Lemay on March 3, 2009 at 5:18 pm

    hi all,,

    I need to animate text.. I used the typewriter preset but i need to adjust the duration for all the layers (more than 200). Is it possible to get the number of character of the layer to create a expression like..

    d = ;// duration of each character (will use slider to adjust)
    nb = ; // number of characters (have to get from textTotal?!?)
    da = ;//duration of animation

    At the begining of layer value must be 0% and at da (duration of animation) value must be 100%

    Someone got an idea!!

    Thanks

    Ben

    Benoit Lemay replied 17 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 3, 2009 at 6:15 pm

    text.sourceText.length will give you the number of characters.

    Dan

  • Benoit Lemay

    March 3, 2009 at 9:01 pm

    Thank!!

    I think i got it!

    tc = effect(“Time per character (frame)”)(“Slider”); // time per character (frame)
    nc = text.sourceText.length; //nb de caracteres
    ad = tc*nc; // animation duration (frame)
    i = inPoint*30; // debut animation (frame)
    tp = time*30 ; // temp present en frame
    (tp-i)*(100/ad)+effect(“Adjust time (frame)”)(“Slider”);

    Someone can maybe update it? Sorry for the french comments…
    Ben

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