Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Using an expression to rename a comp

  • Using an expression to rename a comp

    Posted by Thomas Hannen on December 9, 2012 at 10:38 pm

    Hi,

    I’d like to be able to rename the current comp using an expression to do so. I have a large number of lower-thirds to create, and a text file containing them all.

    Each lower-third needs a name and a job title in the comp. Then I’d like to be able to send all the comps to the render queue, and for each video file created to have the name of the person in the aston – i.e. “John Smith.mov” etc..

    Is this doable using expressions, or would I have to learn scripting to change the file output name somehow?

    I’m currently using this to find a line in the text file, and change the Source Text: (see code below)

    Many thanks for any suggestions – I’ve googled around but can’t find anything that fits the bill..

    myPath = "text.txt";
    $.evalFile (myPath);
    txt[0];

    Bryan Woods replied 13 years, 5 months ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 9, 2012 at 10:46 pm

    An expression can’t change anything except the value of the property that hosts it. So no, you can’t do what you want to do with expressions. It’s a perfect application for scripting though.

    Dan

  • Bryan Woods

    December 10, 2012 at 4:48 am

    Check this tutorial out and see if this helps you some:

    https://vimeo.com/15064759

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Vimeo framework” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

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