Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions expression for project info

  • expression for project info

    Posted by Jack Parks on August 25, 2011 at 9:44 am

    Hello

    Does anyone know an expression or set of expressions to get the info for a project that could be put into a text layer, to create an automatic project information card?

    So it would show;
    Project Name
    Composition Name
    Composition Settings (Dimensions, Frame Rate, Duration etc)
    Any other useful info.

    Any ideas would be appreciated.

    Thanks

    Jack Parks replied 14 years, 8 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    August 25, 2011 at 1:21 pm

    The project info is accessible to expressions, but the rest of it would be like this:


    thisComp.name + "r" +
    thisComp.width + "r" +
    thisComp.height + "r" +
    thisComp.duration + "r" +
    1/thisComp.frameDuration

    You could also add comments from a marker with any info you wanted to add.

    Dan

    Note: Each “r” should have a backslash preceeding the r. That seems to get lost in the translation to HTML.

  • Jack Parks

    August 26, 2011 at 11:18 am

    Hello, thanks Dan, that’s great.
    If you have a second please could you tell me how to add punctuation and text?
    For example so it would say Duration – value from expression – seconds,
    and so Dimensions are on the same line.
    Any tips would be really helpful.
    Thank you.

  • Dan Ebberts

    August 26, 2011 at 1:31 pm

    Like this:


    "Comp: " + thisComp.name + "\\r" +
    "Width: " +thisComp.width + " pixels" + "\\r" +
    "Height: " + thisComp.height + " pixels" + "\\r" +
    "Duration: " + thisComp.duration + " seconds" + "\\r" +
    "Frame Rate: " + 1/thisComp.frameDuration + " fps"

    Dan

  • Jack Parks

    August 26, 2011 at 5:41 pm

    I will give it a try.
    Thanks so much.

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