IM reset via Maxscript ?

Hi !
actually working on GI reuse automation (and more than that, animation wizard),
i’m trying to know what can be manipulated via maxscript concerning IrradMap reuse/reset..

Can these buttons be handled via maxscript ? :
- Save IM
- Reset IM
- number of IM samples ?

For instance, i’m just playing with im modes to simulate these functions, but it’s not very handy…

thanks by advance :wink:

try ‘showmethods renderers.current’ in the listener.. i’m pretty sure you can, but dont remember what the command is :wink:

renderers.current.clearIrradianceMap()

-- Save IM
-- sets the imap mode to Multiframe Incremental
renderers.current.adv_irradmap_mode = 1
renderers.current.adv_irradmap_autoSave = true
renderers.current.adv_irradmap_autoSaveFileName = (“C:/” + (getfilenamefile maxFileName) + “.vrmap”)

-- Reset IMAP - As stated above
renderers.current.clearIrradianceMap()

-- IM Samples - 20 interpolated samples
renderers.current.gi_irradmap_interpSamples = 20

-- Sets the hsph to 50
renderers.current.gi_irradmap_subdivs = 50

Wow !
Thank you guys for your prompt answers..
Sorry i didn’t received my suscripbe mail.. hmm i’ve to update my cp :wink:

i’ think i’ve all the necessary, now. thanks a lot !