Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Looking for AE script to export multiple different numbers easily.

  • Looking for AE script to export multiple different numbers easily.

    Posted by Desmond Gerritse on December 23, 2021 at 1:21 pm

    HI everyone,

     

    I had a question and haven’t found a way to Google this specific question so was hoping someone here could point me into the right direction.

    For work I have animations with JP-values. And I was looking for an easy way to export for example numbers 10 till 90 more easily.

    In Indesign I found a way to do this to assign the JP-value for A1, A4 etc.. corresponding to a page number. So I only need to edit the design in the A-stramien. And can easily export 10 till 90 as seperate PDFs.

    Now what I’m looking for is working in AE with different screen sizes and having an animated reveal of the JP-value to have it more easily generate all the needed JP-values sort of automated.

    My current proces is:
    1. Having the exact same precompose in 10 different screen sizes with the JP.
    2. Change the animated JP-value to 10 in that precompose.
    3. Select all the compositions to send to Adobe Media Encoder.
    4. Wait till all are in the queu.
    5. Go back to the precompose with the JP-value and change it to 11.
    6. Select all compositions and add to Adobe Media encoder.
    7. And so on…. for each number

    Which as you can guess takes a lot of time. So was wondering if any of you guys might knew a trick or script to be able to do this.

     

     

    Desmond Gerritse replied 4 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Kevin Camp

    December 23, 2021 at 5:18 pm

    There is a script on aescprits.com called CompsFromSpreadsheet that would probably make things easier for you. It’s not free, but there is a short tutorial/overview you can check out and I think you can try it before you buy it. Probably worth checking out.

    You can also use expressions to get a comp’s name and use it in a text layer… the thought here would be to use AE’s built in auto numbering when you duplicate it in the project window.

    Say you have a comp named MyComp_1, when you duplicate that comp in the project window the duplicate will be MyComp_2. If you had a text layer in MyComp_1 that grabbed the value after the underscore in the comp name (‘1’ in this case), when it is duplicated in the project window the text in the resulting MyComp_2 will be ‘2’. As you keep duplicating the comp that number will change in each new comp. You also don’t have to start with 1, the comp could start and MyComp_100 and the duplicate will be MyComp_101…

    If something like that might work for you, here is the expression to add to the source text of the text layer:

    txt = thisComp.name.split('_') ;
    txt[ txt.length - 1 ]

    The expression is looking for an underscore to separate the number, and it will return the last item it finds after the underscore. EX: This_is_My_Comp_1 will still return just the ‘1’. You could use a space or other character by changing the character in the split() function. EX: split(‘+’) will split the name at a + character (EX: My_new-Comp+1, returns ‘1’). So the expression can be pretty flexible for comp naming.

  • Desmond Gerritse

    December 28, 2021 at 12:17 pm

    Ah thanks so much Kevin! No worries if it costs money. Thanks will check it out.

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