Render and subset not working?

Render and subset not working?

Bob.Bon2000
Collaborator Collaborator
885 Views
2 Replies
Message 1 of 3

Render and subset not working?

Bob.Bon2000
Collaborator
Collaborator

Can some1 double check that you guys can get an correct result using this :

 

mr = mental_ray_Renderer()
renderers.current = mr
SubSnode = Render_Subset_of_Scene_Masking__mi name:"SubS"
mr.Camera_Lens_Shader = SubSnode
shad = renderers.current.Camera_Lens_Shader
shad.enabled = True
shad.material = sceneMaterials["test"] -- Make sure you have test material - car paint preferably
render outputFile:"C:\test.png"

All I'm getting are blank/black  renders. I need to use max quick render to get an actual result? Is this bugged?

0 Likes
886 Views
2 Replies
Replies (2)
Message 2 of 3

MedalHellWay
Collaborator
Collaborator

Ye... don't work. I have try also this (use of a camera):

 

mr = mental_ray_Renderer()
renderers.current = mr
SubSnode = Render_Subset_of_Scene_Masking__mi name:"SubS"
mr.Camera_Lens_Shader = SubSnode
shad = renderers.current.Camera_Lens_Shader
shad.enabled = True
shad.material = sceneMaterials["test"] -- Make sure you have test material - car paint preferably
---
macros.run "Lights and Cameras" "PhysicalCamera_CreateFromView"
c = $PhysCamera001
w = renderWidth
h = renderHeight
bitm = bitmap w h  filename:(getDir #preview +"\\test.png")

re = render c fileName:dir vfb:on
copy re bitm
save bitm
close bitm
gc light:true
delete c

nothing appears of the new bitmap... I noticed that the building normally shader, it works badly (max2016). I look forward to other users for other tests...

Message 3 of 3

Bob.Bon2000
Collaborator
Collaborator

Uff thatnks for your time and checking it out for me. I thought I was going mental.

 

This is a terrible news for me 😞 

 

How on earth could it not work sigh. Heart broken. 

0 Likes