Closing rendered frame window

Closing rendered frame window

Anonymous
Not applicable
1,717 Views
4 Replies
Message 1 of 5

Closing rendered frame window

Anonymous
Not applicable

Hey guys,

 

I'm creating a script that contains a render button, but I can't seem to find documentation on how the close the rendered frame window and / or render in it.

 

Whenever I use the render() command it creates its own RFW (which is 16-bit and I'd like to use the 32-bit one with mental ray). I'd like to use the regular one but can't seem to find out how to control it or render to it.

 

Can someone point me in the right direction on this?

 

Cheers,

 

M.

0 Likes
Accepted solutions (1)
1,718 Views
4 Replies
Replies (4)
Message 2 of 5

barigazy
Enthusiast
Enthusiast

You can use
render outputHDRbitmap:true

0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks, that solves the 16-bit framebuffer issue!

 

Still getting duplicate buffers though, I'd like to render in the main one. (with the mr controls)

 

M.

0 Likes
Message 4 of 5

barigazy
Enthusiast
Enthusiast
Accepted solution

Then you not need to use render fn

Try simply like this

 

mr = renderers.current
if getclassname mr != "mental ray Renderer" do mr.FrameBufferType = 1
max quick render

Message 5 of 5

Anonymous
Not applicable

Ah, the max quick render command is what I was looking for... 🙂

 

Thanks!

 

M.

0 Likes