PDA

View Full Version : Max 2009 rebuild FG/Photon maps


partizanu
04-14-2009, 09:30 AM
Hello all,

I'm trying to rebuild Photon Map and Final Gather Map from maxscript but without any luck. Both give "Unknown property".

Any idea how to solve this? How can you get the same result in maxscript as pressing the "Generate Final Gather Map File Now" button (regenerate map but don't render)?


Thank you very much!

Script:

mentalRR = mental_ray_renderer ()
if classof renderers.current==mental_ray_renderer then
(
mentalRR.FinalGatherEnable2 = true
mentalRR.UseFinalGatherFile = true
mentalRR.FinalGatherFilename = @"F:\work\test.fgm"
mentalRR.FinalGatherRebuild = true
}


Error:

>> MAXScript FileIn Exception: -- Unknown property: "FinalGatherRebuild" in mental_ray_renderer:mental_ray_renderer <<

CGTalk Moderation
04-14-2009, 09:30 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.