Community
Arnold for Maya Forum
Rendering with Arnold in Maya using the MtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

denoice.exe Animation Batch Script v0.1 for 3DS MAX download here.

3 REPLIES 3
Reply
Message 1 of 4
madsd
772 Views, 3 Replies

denoice.exe Animation Batch Script v0.1 for 3DS MAX download here.

Hello,

Here you will find a VERY early version of a batch script that can take an image sequence of properly created .exr files with N,Z,RGBA,Albedo_Diffuse and Variance filter layers as shown in instructions, and then convert the image range into denoised versions. So you need to change folder name, and the file name, and you can swap out the "100" with the actual frame number you got.

You need to save out this text bit into a Denoiser.bat file, you can create a .txt file and rename file and the extension afterwards. Do note you need to edit the file, you cant just run it.

I will ofcourse update it, and very likely create a small UI for max, with some settings at a point, but for now this has been tested and it works perfect in my end.

https://www.dropbox.com/s/dfrvgajpq0hy5ge/Denoiser.bat?dl=0

3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: madsd

Hey Mads


I have been pulling my hair out trying to get Noice denoising on individual AOV layers, since the latest MaxtoA update. I have managed to get the command-prompt solution working...but it's only for single images, not sequences.

Your script looks fantastic! However, (and only if you have time) can you let me know how you set up your AOVs to make this work?

Right now, I have one EXR containing all my components, (diffuse, specular, etc etc) plus my Denoise_albedo, Z, and N, then I have a second EXR containing the components I with to denoise, set to filter variance.

This works for command-line technique...but the command line technique requires both the main components EXR plus the variance EXR...your batch script only seems to call for one exr file (per frame) and that's it....so I feel I haven't set my AOVs up correctly.


Thanks again, and if you have not time to answer that's totally cool.

Stay healthy and safe!


-matt

Message 3 of 4
Stephen.Blair
in reply to: Anonymous

Can you post your full command-line for denoising a single image?
It's just a matter of updating that batch script with the additional arguments



// Stephen Blair
// Arnold Renderer Support
Message 4 of 4
Stephen.Blair
in reply to: madsd

Here's an example. I updated to run this noice command line

@echo off
setlocal enabledelayedexpansion
SET "noice=C:\ProgramData\Autodesk\ApplicationPlugins\MAXtoA\noice.exe"
SET "MPath=C:\go\"
SET "MName=go"
for /l %%i in (1,1,100) do (
set "frame=%%i"

if !frame! GEQ 100 set "lframe=0!frame!"
if !frame! LEQ 99 set "lframe=00!frame!"
if !frame! LEQ 9 set "lframe=000!frame!"
 start /WAIT %noice% ^
-ef 2 -sr 2 -pr 2 -v 0.5 ^
-i %MPath%%MName%_AOVs!lframe!.exr ^
-i %MPath%%MName%_variance!lframe!.exr ^
-l diffuse ^
-l specular ^ 
-o %MPath%%MName%_Denoised!lframe!.exr
)


You have to add a -l for each AOV you want to denoise.



// Stephen Blair
// Arnold Renderer Support

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report