Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Triggering RAM Preview via script

  • Triggering RAM Preview via script

    Posted by Irene Nelson on June 10, 2016 at 10:38 pm

    Does After Effects allow a script to trigger the RAM preview? I was hoping to make one that would turn off the visibility of a certain type of layer (probably determined by label type), then trigger a RAM preview… and ideally revert the visibility change once the preview is stopped.

    The visibility bit is not a problem, but I haven’t been able to find any documentation for how I would call the preview, and am guessing that means it might not be possible… or just way more complicated than it’s worth. Any thoughts?

    Xavier Gomez replied 10 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Xavier Gomez

    June 11, 2016 at 5:52 am

    From beginning to end of the workbar area:

    myComp.ramPreviewTest(checkerboards, zoom, exposure);

    (returns a string).

    To play the ram preview with the same settings as the ones in the current viewer:

    var i = app.activeViewer.activeViewIndex;
    var options = app.activeViewer.views[i].options;

    then use view.checkerboards (boolean), view.zoom (number), and view.exposure (number) as arguments.

    Xavier

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