Notifications
Clear all

[Closed] Active checkbox in Advanced Lighting tab

I’m trying to force the status of the Active checkbox in the Advanced Lighting tab in the Render Scene dialog. I have searched everywhere I can think of and can’t find how to access it.

I have found radiosityPreferences.useRadiosity/radiosityPreferences.useAdvancedLighting, but setting this to false does not seem to be affecting the speed of the renders to the extent that unchecking the Active checkbox does.

Can anybody tell me how to access the Active checkbox? Thanks!

6 Replies

Oooh, this is a toughy! As you say, the “.useAdvancedLighting = false” turns off the checkbox in the render tab, but doesn’t stop the Advanced Lighting tab from being ‘active’.

I thought initially you might be able to do it via UIAccessor, but that only seems to have functionality to handle pressing buttons, not unchecking boxes.

Ah nuts! haha

Alright, well, what I’m doing is having some pre and post render callbacks running and am forcing it off for render and then back on after. So, I’m just going to store sceneRadiosity.radiosity to a variable, set sceneRadiosity.radiosity to undefined and then set it back to the variable’s value after rendering has completed. I think that should do the trick!

I really don’t now if this will help, but…I was rumpaging through the docs when I cam across this: renderSceneDialog.[b]commit/b

Don’t know if it will help, but I thought I would mention it

I’m just now facing the same problem… has anyone found a solution yet for checking/unchecking the “active” checkbox via maxscript?


   --stop Advanced Lighting
   renderpresets.Load 0 (GetDir #maxroot + "\\renderpresets"+ "\\3dsmax.scanline.no.advanced.lighting.draft.rps")  #{33}
   --start Radiosity
   renderpresets.Load 0 (GetDir #maxroot + "\\renderpresets"+ "\\3dsmax.scanline.radiosity.draft.rps")  #{33}
   

-for Light Tracer you will have to make a preset and load only the Advanced Light part Element 33 (#{33})
-this will not affect the rest of the rendering settings

Here’s a script that allows you to change the ‘Active’ state of the Advanced Lighting dialog. It’s still a bad hack, but it works.

Martijn