Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression that can read the framerate of a nested comp.

  • Expression that can read the framerate of a nested comp.

    Posted by Hannes Kersting on February 3, 2024 at 10:23 pm

    Hello everyone,

    I am looking for an expression that can read the framerate of a nested composition.

    I have a project in which there are many different specs. Different formats and framerates. To give me an overview of all formats, I have created a composition in which all final animations are embedded as nested comps. This gives me a composition in which I have an overview of all the different formats and the respective designs.

    To further simplify the overview, I have created a text layer for each nested comp, on which there is an expression that recognizes the size of the respective nested comp.

    Unfortunately, I can’t currently find a solution for scanning the framerate as well as the size of the nested comp.

    Does anyone have a solution for me?

    Here is the expression that recognizes the size of the nested comp and displays it on the text layer:

    var input = thisComp.layer(index+1);

    var CompHeight = input.height;

    var CompWidth = input.width;

    var Devider = ” x “;

    var CompSize = CompHeight + Devider + CompWidth;

    [CompSize]

    Thank you in advance for your help !

    Brie Clayton replied 3 weeks, 4 days ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    February 3, 2024 at 11:03 pm

    You could try something like this:

    (1/input.source.frameDuration).toFixed(2) + " fps"
  • Hannes Kersting

    February 4, 2024 at 7:25 pm

    Works like a charm!
    It was an honor to have been in contact with you.
    Dan: You are the Goat.

  • Brie Clayton

    February 4, 2024 at 10:10 pm

    Thank you, Dan, for this solve!

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