Notifications
Clear all
[Closed] save "quick render" image
Jul 15, 2006 4:06 pm
hi,
I am trying to write a script wich could automatically save bitmap rendered when I press "F9"
I tried to a #preRender callback, defining the output file name … but it didn’t work
is there a simple way to save the image in the VFB, using a #postRender or #preRender callback ?
2 Replies
1 Reply
Yes, using #PostRender callback and calling the method getLastRenderedImage() which returns whatever was rendered last (even if it was never saved anywhere!). Assign the resulting bitmap to a variable, set the file name and call save() on it to write to disk.
Check out my RRH script here which uses the same concept:
http://www.scriptspot.com/bobo/darkmoon/rrh/
Jul 15, 2006 4:06 pm
thanks so much, I think you script is going to give me so many clues about what I want to do !!!
thanks again !!