Author Topic: Corona/Max saving images to wrong directories  (Read 1046 times)

2022-08-18, 04:37:34

lucidmetal

  • Active Users
  • **
  • Posts: 6
    • View Profile
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

2022-08-18, 12:50:19
Reply #1

James Vella

  • Active Users
  • **
  • Posts: 542
    • View Profile
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.

2022-08-21, 09:05:02
Reply #2

lucidmetal

  • Active Users
  • **
  • Posts: 6
    • View Profile
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.

2022-08-22, 14:44:18
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12714
  • Marcin
    • View Profile
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?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2022-08-23, 10:27:31
Reply #4

Ink Visual

  • Active Users
  • **
  • Posts: 159
    • View Profile
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.