Notifications
Clear all

[Closed] save "quick render" image

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
(@bobo)
Joined: 10 months ago

Posts: 0

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/

thanks so much, I think you script is going to give me so many clues about what I want to do !!!

thanks again !!