Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Looking for command for simple Scale Precomping Script

  • Looking for command for simple Scale Precomping Script

    Posted by Dakota Geng on October 11, 2019 at 3:39 pm

    Hello!

    Hopefully relatively simple request for someone who knows the specific commands I’m looking for. Basically I have a MasterComp in my project that is at a 1080p resolution that I am wanting to automatically nest and scale down into a basically duplicate comp with a lower resolution for render. I’ve been trying to solve an issue of needing to render a lower res version of my project for a deliverable without having to render the full 1080p and then down scaling afterwards.

    The issue with rendering automatically from the 1080p comp into the lower res is that it crushes the quality. While if I nest the full size comp in a smaller one at a lower scale it keeps the quality.

    I’m new to scripting but it seems like a small amount of steps to handle, it’s basically:

    1. Selects the MasterComp
    2. Run script
    3. Script Precomps the selected composition inside a new composition identical except for it’s size (720×404)
    4. Scales down the nested comp ( 37.5%)

    This is something I have to do a ton on our videos, would really love to figure this out.

    Thanks for the help all

    Dakota Geng replied 6 years, 7 months ago 1 Member · 1 Reply
  • 1 Reply
  • Dakota Geng

    October 11, 2019 at 7:52 pm

    Here is a video I have made showing me doing exactly what I want to have happen manually: https://www.youtube.com/watch?v=zdvb8BPdL0s&feature=youtu.be

    It’s a short process yes, but it would be a real help to automate as we have a lot of videos we go through that this needs to apply too. This was the code I found below that I was trying to work with to accomplish this:

    var precomp = app.project.activeItem.layers.precompose([1], “720_Render”, [true]); precomp.width = 720; precomp.height = 404;

    The issue with the code above is all it does is precomps the layer inside the composition, and it also doesnt crop to the center of the composition.

    Any help here would be much appreciated 🙂

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

    This happens because the functionality/content marked as “Google Youtube” 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