-
After effects play/pause current preview
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 positionapp.project.item(index).timeand 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