View Full Version : Acess to the rendered image in the picture viewer?
otomo 08-08-2008, 01:23 PM Is there a way in Coffee or via C++ to automatically save rendered images from the picture viewer with just one click? I searched the documentation of Coffee and C++ but cannot find any access to the image in the picture viewer.
What I would like to do is an easier work-in-progress series of images. without going through the OS-SaveFile Dialog all the time.
Any ideas?
|
|
c-montesano
08-08-2008, 05:04 PM
This could be done in COFFEE or C++, but not in the same way.
In C++ you'd probably have to write a post effect plugin that would save the rgba buffer to a file. If the file exists you could just append or increment a number to the file name.
With COFFEE you could monitor the render's directory and append a number to any files that match the renders file name. So lets say that the render settings are set up to save at c:\renders\mypicture.tif... your plugin would look in c:\renders for mypicture.tif. If it finds it then it would rename it to something like mypicture001.tif, or if that name is taken then mypicture002.tif and so on. That way the picture viewer should never ask you if you want to overwrite mypicture.tif since it's already been renamed. This should be possible with almost any language, not just COFFEE... for example this could be done very quickly with a visual basic program, or perhaps applescript.
I hope this helps.
-Chris
otomo
08-08-2008, 07:47 PM
Ok. I understand what you say about C++. since I am not a C++ programmer this seems impossible to me. For now.
But I dont get what you write about the Coffee Stuff. This isnt a way to get access to the image in the picture viewer, am I right? Altough I have an idea about handling image data in coffee (BaseBitmap) there is no way to get the rendered image from the Picture Viewer in this BaseBitmap. Or am I overseeing something here?
c-montesano
08-08-2008, 08:01 PM
No, you are correct, there is no access to the picture viewer from coffee. What I was suggesting was that instead of accessing the picture viewer you just let the picture viewer save the file like normal, and the coffee plugin would just make sure that the previous renders were not overwritten.
CGTalk Moderation
08-08-2008, 08:01 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.