ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

After effects play/pause current preview

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Arno Deceuninck
After effects play/pause current preview
on Jun 15, 2017 at 3:35:22 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


Return to posts index

Richard Garabedain
Re: After effects play/pause current preview
on Jun 15, 2017 at 3:59:27 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?


Return to posts index

Arno Deceuninck
Re: After effects play/pause current preview
on Jun 15, 2017 at 4:26:58 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.


Return to posts index


Walter Soyka
Re: After effects play/pause current preview
on Jun 15, 2017 at 7:01:17 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 [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]