Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Create Audio Amplitude with ExtendScript – no mouse clicks

  • Create Audio Amplitude with ExtendScript – no mouse clicks

    Posted by Martin Bollerup on February 14, 2013 at 10:24 am

    Hey guys

    Is there any way of creating the Audio Amplitude layer with ExtendScript only? This should be done with no mouse clicks as it is a 100% automated process.

    If you’ve got any alternative ideas – such as using the Audio Waveform Effect to manipulate a Solids color from white to black and then get the amout of black as a value from 0-255 or 0-100 or 17-17.3. Or extracting the waveform to a vector path and then measuring the height of the element?

    thanks
    Martin

    Mitch Mann replied 13 years, 3 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    February 14, 2013 at 2:20 pm

    You can execute this command:

    app.executeCommand(app.findMenuCommandId(“Convert Audio to Keyframes”));

    If you have CS6, you can make sure your comp has focus and the layer is selected first, otherwise you have to do that by hand.

    myComp.openInViewer();
    myComp.layer(1).selected = true;

    Dan

  • Martin Bollerup

    February 14, 2013 at 2:34 pm

    Whoooha!!!

    martinComp.openInViewer();
    martinComp.emotions(“HAPPY”).value = true;

    Thank you Dan – once again you save the day (and I learned something new) 🙂

    Martin

  • Mitch Mann

    February 15, 2013 at 3:11 pm

    A related curiosity: if activeItem is null (because timeline or viewer don’t have focus). Is there a way to use openInViewer to give focus to the comp that’s already open?

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