Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Mogrt version of buzz words effect for Premiere Pro

  • Mogrt version of buzz words effect for Premiere Pro

  • Pawel Kuncewicz

    September 7, 2022 at 12:26 pm

    Hi all,

    I’m trying to build a mogrt file which will work like the out of the box buzzwords effect in AE.

    So far, I have set up some 20 text layers which are hidden and will work as text fields and I have main text layer with ‘buzzwords’ expression that feeds from text fields 1-20.

     

    My knowledge of expressions is rather basic but I got it to work somehow by altering the first line of expression to

    buzz_words = (thisComp.layer(“1”).text.sourceText +’|’+ thisComp.layer(“b”).text.sourceText+’|’)

    I realise if I set this up for 20 text layers, this would be rather lengthy code, do you have any recommendations for making this a little bit less so?

     

    Thanks in advance.

    Pav

  • Dan Ebberts

    September 7, 2022 at 8:16 pm

    What are the names of the 20 layers?

  • Dan Ebberts

    September 7, 2022 at 11:22 pm

    As an example, if the first 20 layers of your comp were the buzz words input layers, something like this should work:

    startLayer = 1;
    numLayers = 20;
    buzz_words = "";
    for (var i = startLayer; i <= numLayers; i++){
    buzz_words += thisComp.layer(i).text.sourceText + (i < numLayers ? "|" : "");
    }
  • Dan Ebberts

    September 7, 2022 at 11:49 pm

    That one wasn’t quite right. This is better:

    numLayers = 20;
    startLayer = 1;
    buzz_words = "";
    for (var i = 0; i < numLayers; i++){
    buzz_words += thisComp.layer(startLayer + i).text.sourceText + (i < numLayers-1 ? "|" : "");
    }
    buzz_words
  • Pawel Kuncewicz

    September 21, 2022 at 9:03 am

    Wow! thank you so much, works like a charm!

Viewing 1 - 5 of 5 posts

Log in to reply.

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