|
Hello all,
I’m trying to rebuild FG map and Photon map from a maxscript but without any luck. FinalGatherRebuild returns “Unknown property”. Any idea how can I regenerate my maps from a script?
Thanks 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 <<
|
|
|
|
For max 2009 (and probably previous versions) you can use the following code:
if classof renderers.production==mental_ray_renderer do
(
--Final Gather
renderers.production.UseFinalGatherFile = true
renderers.production.FinalGatherFreeze = true
renderers.production.FinalGatherFilename = (Enter filename string)
--GI
renderers.production.PhotonMapUseFile = true
renderers.production.PhotonMapFilename = (Enter filename string)
)
|
|
|