Maxwell Render integration for Blender (different one)

This is a version of blendmaxwell updated for Maxwell 4.1 / 4.2 including parameters for the denoiser. For windows only, Blender 2.79b.

https://drive.google.com/file/d/1TABxLtA1r7JstvvOiVlayx28rylz8MvU/view?usp=sharing

This is just a minor tweak to all the work done on this excellent plugin by the original author.

There is a bug in the python bindings for Maxwell which prevent you from setting whether the denoiser runs at every SL or at the end. It always sticks to the default of starting at SL 4. You can fix this by exporting the scene to MXS and then running Maxwell from the command line with the -denoiseStartSL:x option.

Note that this works well with 4.1, but you have to implement a work around for Maxwell 4.2 (4.2 crashes Blender).

You need to uninstall 4.2, install Maxwell 4.1 (if you didn’t keep the download you are probably out of luck) then copy the directory in Program Files and rename it Maxwell 4.1. You can then safely uninstall it and reinstall 4.2. Instead of launching Blender directly use a batch file with the following content (assuming everything is in the usual locations):

SET MAXWELL4_MATERIALS_DATABASE=C:\Program Files\Next Limit\Maxwell Render 4.1\materials database
SET MAXWELL4_ROOT=C:\Program Files\Next Limit\Maxwell Render 4.1
“C:\Program Files\Blender Foundation\Blender\blender.exe”