Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects How to close a composition via script

  • How to close a composition via script

    Posted by Rob Packer on January 30, 2023 at 9:34 am

    Hi,

    I am using AE 2023 and have written a script that sets an output folder and sends a comp to the render queue. What I’d like to do is add some code to close that comp, which is the active comp. From my research it seems there is no close method for app.project.activeItem.

    I thought the line
    app.executeCommand(app.findMenuCommandId(“Close”));
    would work to replicate the relevant keyboard commands, yet nothing happens.

    Can anyone help with this?

    Thanks

    Rob

    Walter Soyka replied 3 years, 3 months ago 3 Members · 2 Replies
  • 2 Replies

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