You can add an OutputDeepWriter plugin with post-translate python. This way you can output one non-deep and one deep file with the same render. The non-deep file will contain all of your render elements, but the deep file will only contain the deep channels you have specified.
For example, if you add two channels, say Diffuse and Lighting, and set “deep output = true” for Diffuse and false for Lighting, the non-deep file will contain both, while the deep file will only contain the Diffuse. There’s currently no way around this.
or you can use the PluginDoc htmls that are also unpacked with the V-Ray installation (<maya_install_location>/vray/PluginDoc/index.html)
A simple post-translate python would look like this:
from vray.utils import *
dw=create('OutputDeepWriter', 'vrayOutputDeepWriter')
dw.set('file', 'C:/Users/yolov/Desktop/deeptests/deepWrite.exr')
Of course, you can use maya.cmds or pymel.core to fetch your project/images directory or even use vray.utils to get the img_dir value from the SettingsOutput plugin and pass it to the deepWriter.
Note - This will only work if your output is set to multichannel exr!
Just wish to follow up on this re. the information provided.
Im looking at how I can find the calculated file name and folder for output including frame number etc - that would apply to any pipeline. ie. the filename as it is being written from the vray output
Based on doc and information provided so far I can get this ( without frame number ):
Running your script works fine for me even in animation from the non-master render layer.
The frame number is automatically appended, you don’t need to set it in any way.
Can you get me a scene? You can delete all geometry and so on - I just need to look at the script, render settings and render layers.
What Maya version is this?
It works fine. I was previously printing fn to stdout, which wasnt printing the file number component.
I also found that if I had .deep.exr It would put the frame number at the first ‘.’ characters location. Switching to underscores helped control where the frame number would be positioned in the string.