Is there a way to set up V-Ray to save my layered EXR's in the root of the MAX file? I have a hundred kitchens that I have been manually saving through the VFB, but I want to automatically save those where the MAX file is.
Announcement
Collapse
No announcement yet.
Save to Root
Collapse
X
-
Save to Root
Bobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090
- Windows 11 Pro
Tags: None
-
The obvious answer is to use V-Ray raw image file setting in the V-Ray tab, Frame Buffer. Then just make sure you use EXR extension instead of vrimg, and set the path to where your max file is saved.
OR
If you're using max project folders, then set your "RenderOutput - .\renderoutput" path the same as your "Scenes - .\scenes" Path. Then you can just click the save button in the VFB and default path will be same as your scene file.
I don't think you would ask if the answer is that obvious so I'm geussing there's more to the question...
If you have multiple different kitchen files, each with different cameras, etc, are they in the same folder or seperate folder? Its pretty simple to script a button that will output to whereever you want, naming the file whatever you want, and it could be based on camera name, scene name etc.
Need more info to give you a more appropriate answer.
Last edited by Morne; 18-11-2020, 11:33 PM.Kind Regards,
Morne
-
I wanted my EXRs to be automatically saved where my MAX file is, regardless of where it is. Normally I work in my MAX file structure, but with these 100s of kitchens, I am not.Bobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090
- Windows 11 Pro
Comment
-
Originally posted by glorybound View PostI wanted my EXRs to be automatically saved where my MAX file is, regardless of where it is. Normally I work in my MAX file structure, but with these 100s of kitchens, I am not.
only 1 cam per max file?Kind Regards,
Morne
Comment
-
Bobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090
- Windows 11 Pro
Comment
-
Here is a script that will do that for you.
You will find it under Mr.Max category so you can create a shortcut /button for it
this script will do the following :
1-enable vray image raw file saving
2-add the address like the following: "max file path + max file name + .exr "
now when you render, VRay will automatically save the render to the same file location with the same file name.
you will need to run the script shortcut /button once for every file of course.
let me know if you need any further help with it .
Attached FilesLast edited by M.Max; 19-11-2020, 02:54 PM.-------------------------------------------------------------
Simply, I love to put pixels together! Sounds easy right : ))
Sketchbook-1 /Sketchbook-2 / Behance / Facebook
- Likes 1
Comment
-
it seems that there is an issue with attachment in the forums. so here is the script code:
Code:macroScript Autosetpath category:"Mr.Max" toolTip:"Auto set path " ( vr = renderers.current vr.output_saveRawFile = true vr.output_on = true vr.output_rawFileName = maxfilepath AS string + MaxfileName as string +".exr" )
-------------------------------------------------------------
Simply, I love to put pixels together! Sounds easy right : ))
Sketchbook-1 /Sketchbook-2 / Behance / Facebook
Comment
-
Awesome, thank you! I will give it a try.Bobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090
- Windows 11 Pro
- Likes 1
Comment
-
That worked, however, I am looking for each separate element. I am using Post-Manager, so it'll create all my blending modes and groups from the individual files.Bobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090
- Windows 11 Pro
- Likes 1
Comment
-
Aha, so Post-Manager doesn't support multichannel exr?!
I thought you are using Cryptomatte now which requires this method to works.
Anyway, I've tried to adjust the script to save sperate elements which should be as simple as changing one line, but it seems VRay requires some workarounds for that( as stated here )
the following script SHOULD work, but it doesn't and I don't even know why =D
Maybe ^Lele^ or yavor.rubenov could help here, please?
Code:vr = renderers.current vr.output_on = true vr.output_splitgbuffer = true btm_filename =maxfilepath AS string + Maxfilename as string + ".exr" tempmap = Bitmap 1 1 fileName:btm_filename save tempmap close tempmap vr.output_splitbitmap = tempmap deleteFile btm_filename
Last edited by M.Max; 20-11-2020, 04:27 PM.-------------------------------------------------------------
Simply, I love to put pixels together! Sounds easy right : ))
Sketchbook-1 /Sketchbook-2 / Behance / Facebook
Comment
-
I was using Cryptomatte, however, too many issues. I had errors in Photoshop 1 out of 10 times. PSD manager works, but in bucket mode (although I think he is working on something) so I am using post manager now.Bobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090
- Windows 11 Pro
- Likes 1
Comment
-
Originally posted by M.Max View PostAha, so Post-Manager doesn't support multichannel exr?!
I thought you are using Cryptomatte now which requires this method to works.
Anyway, I've tried to adjust the script to save sperate elements which should be as simple as changing one line, but it seems VRay requires some workarounds for that( as stated here )
the following script SHOULD work, but it doesn't and I don't even know why =D
Maybe ^Lele^ or yavor.rubenov could help here, please?
Code:vr = renderers.current vr.output_on = true vr.output_splitgbuffer = true btm_filename =maxfilepath AS string + Maxfilename as string + ".exr" tempmap = Bitmap 1 1 fileName:btm_filename save tempmap close tempmap vr.output_splitbitmap = tempmap deleteFile btm_filename
Last edited by ^Lele^; 21-11-2020, 03:00 AM.Lele
Trouble Stirrer in RnD @ Chaos
----------------------
emanuele.lecchi@chaos.com
Disclaimer:
The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.
- Likes 1
Comment
-
Originally posted by ^Lele^ View Post
It works for me, no error thrown.
Max doesn't show any error here too, but VRay doesn't seem to change the saving path as it should.
could it be something changed with vray 5 and maxscript access?
-------------------------------------------------------------
Simply, I love to put pixels together! Sounds easy right : ))
Sketchbook-1 /Sketchbook-2 / Behance / Facebook
- Likes 1
Comment
-
Yeah, no errors, but doesn't do anything.Bobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090
- Windows 11 Pro
Comment
-
bah, i never checked that.
You need to set the actual filename path after setting the bitmap.
So add this line before the last one:
Code:vr.output_splitfilename = btm_filename
Lele
Trouble Stirrer in RnD @ Chaos
----------------------
emanuele.lecchi@chaos.com
Disclaimer:
The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.
- Likes 1
Comment
Comment