I can’t seem to change the render output filename casing via Maxscript.
e.g. “Myrender.jpg” to “myrender.jpg”
Using Max 2021.3 (also tested on 2019) I use Vray Next 3.2 and this issue affects all three render outputs:
vr = renderers.current --first assignment, this all works fine rendOutputFilename = @"\\NetworkDrive\Mypath\blabla\Max_.jpg" vr.output_rawFileName = @"\\NetworkDrive\Mypath\blabla\Raw_.exr" vr.output_splitfilename = @"\\NetworkDrive\Mypath\blabla\Sep_.exr" Format "Max: %\nRAW: %\nSep: %\n\n"rendOutputFilename vr.output_rawFileName vr.output_splitfilename --second assignment, this does not work rendOutputFilename = @"\\NetworkDrive\Mypath\blabla\max_.jpg" vr.output_rawFileName = @"\\NetworkDrive\Mypath\blabla\raw_.exr" vr.output_splitfilename = @"\\NetworkDrive\Mypath\blabla\sep_.exr" Format "Max: %\nRAW: %\nSep: %\n\n"rendOutputFilename vr.output_rawFileName vr.output_splitfilename
Try the above and you will see both format printouts are the same. First letters remain capitals after changing them to lower case.
If I change “Max_.jpg” to “maax_.jpg” then it works.
If I then change “maax_.jpg” to “max_.jpg” the result is “Max_.jpg”
It seems like 3dsMax keeps a cache of past file names and re-uses them whilst ignoring case changes.
In Max2021, If I change path manually via the UI, it works fine for the Max render output and Vray Separate channels output, but still fails to alter case on the Vray RAW output.
In Max 2019, I get the same issue via Maxscript, however when manually changing the outputs via UI, it fails on all three render outputs (not just RAW).
- Is there a workaround for this?
- Is there a deeper access into Max to assign these paths?
- It certainly feels like 3dsMax is processing these paths with some flawed function under the hood. We need to be able to bypass it!
Any ideas / thoughts welcome!