Script: Calling Imapviewer from within MAX UI

Hi all,
just got sick of that whole lot of mousework when you just want to have a look at your saved/autosaved irradiance map and wrote those two little macros. They’re really simple, all you have to do is to edit the path to imapviewer.exe to fit it to your needs.
enjoy,
Michael


macroScript ShowSavedIrradianceMap
	category:"sushidelictools"
	toolTip:"display saved irradiancemap in imapviewer"
(
	if renderers.production.adv_irradmap_autoSaveFileName == undefined then
		(
		messagebox "No saved Imap present"
		)
	else
		(
		shelllaunch "c:\\3dsmax8\\imapviewer.exe" renderers.production.adv_irradmap_loadFileName
		)

)


macroScript ShowAutosaveIrradianceMap
	category:"sushidelictools"
	toolTip:"display autosave irradiancemap in imapviewer"
(
	if renderers.production.adv_irradmap_autoSaveFileName == undefined then
		(
		messagebox "No autosaved Map present"
		)
	else
		(
		shelllaunch "c:\\3dsmax8\\imapviewer.exe" renderers.production.adv_irradmap_autoSaveFileName
		)
)

nice one, thanks a lot :slight_smile:

Lele