Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects After effects play/pause current preview

  • After effects play/pause current preview

    Posted by Arno Deceuninck on June 15, 2017 at 3:35 pm

    Hey,

    Is there a way to play/pause your movie(or layer) preview in after effects?

    I have already found app.executeCommand(app.findMenuCommandId("Play Current Preview")); but this created a second problem:
    i have to pause my preview to get my current position app.project.item(index).time and this isn’t working, it pauses the video, but doesn’t start playing again after pausing the preview:

    app.executeCommand(app.findMenuCommandId("Play Current Preview"));
    $.writeln(app.project.item(index).time);
    app.executeCommand(app.findMenuCommandId("Play Current Preview"));

    Do you have any suggestions? I have to get the current position of the sound layer playing in the background, but this layer has to keep playing.

    If you think you know anything that can help me, please leave a comment.

    Thank you

    Walter Soyka replied 9 years, 2 months ago 3 Members · 6 Replies
  • 6 Replies
  • Richard Garabedain

    June 15, 2017 at 3:59 pm

    what are you trying to do. I dont understand…Play pause a layer in after effects…You mean the preview window? surely not..so what then?

  • Arno Deceuninck

    June 15, 2017 at 4:26 pm

    Indeed the preview window, but if you double click on a layer in after effect you get a preview of that layer, but that doesn’t matter, if you know how to do it with a composition preview, that’d be great too. This preview I’d like to play/pause so I can get the time of this preview the moment I clicked a button.

  • Arno Deceuninck

    June 15, 2017 at 4:55 pm

    And is there a way to scrub using scripts? I need to make an array with all moments when I’ve clicked a button (the time the composition is at that instant will always be added to this array) but to click the button at the right moment, I have to hear the sound playing in the background.

  • Arno Deceuninck

    June 15, 2017 at 5:06 pm

    And there isn’t an alternative way to automate this? Something that does something similar to this?

  • Walter Soyka

    June 15, 2017 at 7:00 pm

    [Dave LaRonde] “Don’t try pausing a preview. It won’t work. Once you have a real-time preview, you can scrub to find a precise frame.”

    Pausing a preview works fine. The Preview panel lets you define your stopping behavior.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Walter Soyka

    June 15, 2017 at 7:01 pm

    I suggest you make markers while previewing (* on the NumPad), then have your script read the markers, get their times, and get whatever attributes you need from those times.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

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