Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: lucidmetal on 2022-08-18, 04:37:34

Title: Corona/Max saving images to wrong directories
Post by: lucidmetal on 2022-08-18, 04:37:34
Hi.
I have started having a problem when I am batch rendering (ie with multiple cameras) and when corona saves the images, it doesnt save them in the correct directories.  If I have multiple render elements, it might save the main image in the correct directory, but save all the render elements in a different directory (but always within the same project).

 I started having this problem on one machine a couple of weeks back, but now it is happening to all 3 machines.  I have not upgraded any software recently.  All my files are on a server, and saved back to the server over a network.  I have never had this problem before, but now it happening all the time. 

Does anyone else have this, is there are fix?  I dont know if this is a "corona" issue or  a "max" issue though.

thanks
kane
Title: Re: Corona/Max saving images to wrong directories
Post by: James Vella on 2022-08-18, 12:50:19
Comment from this post works for me (NicolasC), run this in maxscript or make a .ms file with this code:
Code: [Select]
re = maxOps.GetCurRenderElementMgr()
for i = 0 to re.NumRenderElements()  do re.SetRenderElementFilename i ""

https://forum.corona-renderer.com/index.php?topic=18155.0

It clears the paths in the render elements and will then save them to the directory you have your rgb output.
Title: Re: Corona/Max saving images to wrong directories
Post by: lucidmetal on 2022-08-21, 09:05:02
Hi James. Thanks heaps for sending this through.  Didnt work though unfortunately.  I just cant work out why it started happening.  One day it was fine, next day it wasnt.  I'll keep looking though.
Title: Re: Corona/Max saving images to wrong directories
Post by: maru on 2022-08-22, 14:44:18
All file saving is handled by 3ds Max, so it's unlikely Corona's fault.
Have you tried:
- updating all render element paths manually in the Asset Tracker (Shift+T)?
- removing all your render elements and adding them back?
Title: Re: Corona/Max saving images to wrong directories
Post by: Ink Visual on 2022-08-23, 10:27:31
Are you using Pulze Scene manager by any chance?
It overrides the paths and unless you reset them with the script, the elements won't be saved to your manually set up directory anymore.
Of course if you run the batch rendering through Pulze all will be fine, but if for some reason you do it without Pulze, it's going to behave exactly as you described it.

Here's the script we're using to clear render elements paths:

Code: [Select]
macroScript DelRE
category:"# Scripts"
toolTip:"Delete Render Elements"
(
re = maxOps.GetCurRenderElementMgr()
for i = 0 to re.NumRenderElements()  do re.SetRenderElementFilename i ""
)


Set them up again afterwards and all should be back to normal.