Change Renderer Button

Change Renderer Button

Anonymous
Not applicable
244 Views
1 Reply
Message 1 of 2

Change Renderer Button

Anonymous
Not applicable
I want to change from "Default_Scanline_Renderer" to "mental_ray_renderer" and back with MaxScript.

I used:
renderers.current = mental_ray_renderer()
renderers.current = Default_Scanline_Renderer()

I works good, only the Material Editor is not updated. If I change back to Scanline the MR Material are still displayed in the Material Editor. In the Render Setup Dialog has changed.
Open and Close the Material Editor does not work.

Is there a command to update the Material editor?
0 Likes
245 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
I want to change from "Default_Scanline_Renderer" to "mental_ray_renderer" and back with MaxScript.

I used:
renderers.current = mental_ray_renderer()
renderers.current = Default_Scanline_Renderer()

I works good, only the Material Editor is not updated. If I change back to Scanline the MR Material are still displayed in the Material Editor. In the Render Setup Dialog has changed.
Open and Close the Material Editor does not work.

Is there a command to update the Material editor?


If you change the renderer via maxscript it is not updating the existing material slot in the Material Editor to update them you can use this:
for i=1 to 24 do updateMTLInMedit(getMeditMaterial i)
0 Likes