1
$\begingroup$

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?

$\endgroup$
1
  • $\begingroup$ In regards to your edit. I'm not sure how to entirely disable headers. There is a screen layout called 3d view full that does this somehow for the 3d viewport, you could investigate from there. $\endgroup$
    – iKlsR
    Commented Aug 16, 2014 at 20:39

1 Answer 1

1
$\begingroup$

If I understand what you are asking, you can get the same results by choosing New Window or Fullscreen in the Render panel under the Display drop-down list.

Choosing New Window will give you a tad bit more screen estate by not having the Info header. Hover over the list with the current selection for the python equivalent if you want to use it in a script.

$\endgroup$
3
  • $\begingroup$ Awesome, Thanks. Here, I did bpy.data.scenes["Scene"].render.display_mode = 'WINDOW'. But when I did bpy.ops.render.render(use_viewport=True) nothing happens. $\endgroup$
    – iamkhush
    Commented Aug 15, 2014 at 21:27
  • $\begingroup$ @iamkhush Looking at the docs, I am not sure what is supposed to happen. $\endgroup$
    – iKlsR
    Commented Aug 15, 2014 at 21:36
  • $\begingroup$ Yeah, I also tried bpy.ops.render.view_show(), but still it isnt working. I used the --debug-all. I think its not able to set the screen with the rendered output. $\endgroup$
    – iamkhush
    Commented Aug 15, 2014 at 21:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .