I am using python script to render the image. I only want to show the IMAGE_EDITOR area( I think the rendered image gets shown in IMAGE_EDITOR area). It should show only the rendered image.
So basically I am trying to do 2 things here
- Render the image
- Show only the area with the image.
I hope I am clear on this. I tried to render image by -
for area in bpy.context.screen.areas:
if area.type == 'INFO':
override = bpy.context.copy()
override['area'] = area
bpy.ops.render.render(override, use_viewport=True)
break
But it doesn't work.
EDIT: So as iKlsR told, I used a differnt display mode. I am able to get the whole rendered image using
bpy.data.scenes["Scene"].render.display_mode = 'FULL'
for area in bpy.context.screen.areas:
if area.type == 'INFO':
override = bpy.context.copy()
override['area'] = area
bpy.ops.render.view_show('INVOKE_DEFAULT')
bpy.ops.render.render(override, use_viewport=True)
break
However, I need just the rendered area. Not the headers . How can I make them turn off?