Skip to main content
Participating Frequently
February 11, 2016
Answered

Comp viewer in UI

  • February 11, 2016
  • 1 reply
  • 829 views

Hi,

Is there any way I could dynamically extract screenshots from the comp viewer to include in my UI ?

Thanks

This topic has been closed for replies.
Correct answer David Torno
I saw this command while looking for answers,but I i'm not sure this is a reliable function.

Correct. It is an undocumented, therefore not supported feature by Adobe. This means that it could easily disappear from ExtendScript or change with any future update without warning. I use it a lot for my own non-public scripts and it works just fine as long as you are only dealing with 8 and 16 bit projects. 32 bit breaks the image appearance and is unusable. Dan is correct though that saving the image this way could be a backdoor to doing what you are wanting. You could also look into an command line screen cap option, but that would obviously include all of the UI and if the user had multiple monitors, multiple images to sort through, so probably not a good idea.

1 reply

Dan Ebberts
Community Expert
Community Expert
February 11, 2016

I haven't tried it, but I would guess that if you can do it, the key would be to use the undocumented comp.saveFrameToPng(time,file) to generate the thumbnail, then bring that in as an image.

Dan

Participating Frequently
February 11, 2016

Hi Dan,

I saw this command while looking for answers,but I i'm not sure this is a reliable function. ( see the link for explanation )
Re: CC 2015 scripting problems


I'll definitely try it out, but I was wondering if there's any other way.

Thanks

Dan Ebberts
Community Expert
Community Expert
February 11, 2016

Good point, especially if the script is for use outside your own shop.

Dan