Is it possible to require each new F12 render to appear in a new render slot thereby not overwriting the one I wanted to compare it against?
1 Answer
$\begingroup$
$\endgroup$
13
here is a script that switch the render slot automatically after each render
-This is for blender 2.72 and earlier versions :
import bpy
from bpy.app.handlers import persistent
@persistent
def PostRender(self):
bpy.data.images['Render Result'].render_slot += 1
bpy.data.images['Render Result'].render_slot %= 7
bpy.app.handlers.render_complete.append(PostRender)
paste and run inside blender
as Ray Mairlot noted the changes in blender 2.73 and later versions require replacing render_slot
with render_slots.active_index
as follows :
import bpy
from bpy.app.handlers import persistent
@persistent
def PostRender(self):
bpy.data.images['Render Result'].render_slots.active_index += 1
bpy.data.images['Render Result'].render_slots.active_index %= 7
bpy.app.handlers.render_complete.append(PostRender)
-
$\begingroup$ This is the right direction. But
render_slot
cannot take anint
it needs a render slot type. $\endgroup$ Commented Feb 24, 2015 at 18:34 -
2$\begingroup$ I don't know. Did you not test the code? $\endgroup$ Commented Feb 24, 2015 at 18:36
-
1$\begingroup$ The script works for me! Renders and immediately hops into next slot. Very cool, and thank you! $\endgroup$– rcgauerCommented Feb 24, 2015 at 19:36
-
1$\begingroup$ @Chebhou Actually, I forgot, you can do just ` bpy.data.images['Render Result'].render_slot %= 8 ` $\endgroup$ Commented Feb 24, 2015 at 20:13
-
1$\begingroup$ Is it possible to change the slot before (at the same time) the render is launched, not after? $\endgroup$– BithurCommented Feb 24, 2015 at 22:39
F12
and changing features is more time-consuming. $\endgroup$