Author Topic: MaxScript Denoise all RenderElements  (Read 5178 times)

2017-02-28, 08:19:22

Christa Noel

  • Active Users
  • **
  • Posts: 911
  • God bless us everyone
    • View Profile
    • dionch.studio
hi,
I don't know if this kind of script is already exist here. I just want to share this tiny script.
just runscript it and it will enable all RenderElements you have. or you can add this to RenderSetup>CommonTab>ScriptRollout>Pre-Render>file
cheers!

2017-03-07, 12:02:43
Reply #1

Jens

  • Active Users
  • **
  • Posts: 198
    • View Profile
    • Ikonoform
Thank you Christa! Just what I was searching for after a project with 15 different LightSelect passes that took ages to denoise and it was frustrating to turn denoising on/off on each when testing :)

Do you happen to have one that clears the "save path" on all render elements? It's the "Error creating file output" message that happens randomly when using the "Save File" under Render Output in the Common tab. I tried the script listed in the help here: https://coronarenderer.freshdesk.com/support/solutions/articles/5000672469-i-am-getting-error-creating-file-output-message- but it doesn't work. Again I have to go in on all elements and delete the path manually...
My small 3D model shop: www.ikonoform.com/shop
My arch viz blog: www.ikonoform.com/blog

2017-03-07, 12:49:15
Reply #2

Christa Noel

  • Active Users
  • **
  • Posts: 911
  • God bless us everyone
    • View Profile
    • dionch.studio
Thank you Christa! Just what I was searching for after a project with 15 different LightSelect passes that took ages to denoise and it was frustrating to turn denoising on/off on each when testing :)

Do you happen to have one that clears the "save path" on all render elements? It's the "Error creating file output" message that happens randomly when using the "Save File" under Render Output in the Common tab. I tried the script listed in the help here: https://coronarenderer.freshdesk.com/support/solutions/articles/5000672469-i-am-getting-error-creating-file-output-message- but it doesn't work. Again I have to go in on all elements and delete the path manually...
Hi jens, youre welcome
That could be caused by read only directory or doesnt exist path.
I'll write a script for that tomorrow.

2017-03-08, 13:44:00
Reply #3

Christa Noel

  • Active Users
  • **
  • Posts: 911
  • God bless us everyone
    • View Profile
    • dionch.studio
Hi, Here's attached is the script for set all renderElements output path. The browse directory dialog will run first and The filename defaultly will be "scenefilename"+"elementName"+".jpg"
« Last Edit: 2017-03-09, 04:45:13 by Christa Noel »

2017-03-08, 20:11:43
Reply #4

Jens

  • Active Users
  • **
  • Posts: 198
    • View Profile
    • Ikonoform
Wow, you are fast Christa! Thank you. Now I don't want to sound ungrateful at all, but what I was looking for was a way to clear all the paths. I always save my main render output in .exr so all the passes goes in to that one = no need for saving out each pass :)

But sometimes 3ds max puts in a path (which to me looks perfectly valid) and I get the "Error creating file output" non the less. I fix it by manually clearing the path on all elements since the help provided by Corona Helpdesk doesn't work for me:

If it is caused by an invalid output path, then you can clear it:

Close "Render Setup" window
Copy this line into MAXScript listener (F11, or the pink box in the lower-left corner of the 3Ds Max UI):

rendOutputFilename = ""
My small 3D model shop: www.ikonoform.com/shop
My arch viz blog: www.ikonoform.com/blog

2017-03-09, 04:44:48
Reply #5

Christa Noel

  • Active Users
  • **
  • Posts: 911
  • God bless us everyone
    • View Profile
    • dionch.studio
I've deleted the script above. use the new script in attached file. run the script, and a query will show, press yes to set the outputpath to custom path, no to clear the path, cancel to abort.
enjoy :)

2017-03-12, 14:57:45
Reply #6

Jens

  • Active Users
  • **
  • Posts: 198
    • View Profile
    • Ikonoform
Works perfectly! Thank you so much Christa :)
My small 3D model shop: www.ikonoform.com/shop
My arch viz blog: www.ikonoform.com/blog

2017-03-14, 08:35:43
Reply #7

Nik

  • Active Users
  • **
  • Posts: 167
    • View Profile
    • HQ Details
As far as I know there is no way to "clear path" for render elements. If you clear it, then it will be replaced by default automatically and save in default folder. I tried. Path remains empty until you start render.

UPD.
Oh, it seems you need to clear paths to overwrite them and get rid of an error. My bad :)
« Last Edit: 2017-03-14, 08:44:26 by Nik »