Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Feature Requests => [Max] Resolved Feature Requests => Topic started by: Naxos on 2017-11-25, 09:58:24

Title: CoronaImage.exe to be scripted
Post by: Naxos on 2017-11-25, 09:58:24
Hello,

I have definitively adopted the CXR file format, and i would like to get a way to convert bunch of files within a folder from cxr to whatever (jpg, png, etc)...

For now i've made a small bat script (see below for those that would need it), but i think some easy scripts could be included into the gui version... a new menu item with "batch convert"...

Regards.

the script :
-------------------------------
@echo off
setlocal enabledelayedexpansion

set /p dossier= folder ? :
For %%i in (%dossier%\*.cxr) do (
  set nom=%%i
  set nam=!nom:~-0,-4!.jpg
  set num=!nom:~-0,-4!.png
"C:\Program Files\Corona\CoronaImageCmd.exe" !nom! !num!
"C:\Program Files\Corona\CoronaImageCmd.exe" !nom! !nam!
)
------------------------------
just copy that in a filename.bat file and start it.
Title: Re: CoronaImage.exe to be scripted
Post by: maru on 2017-11-27, 11:14:47
You can find a sample batch CIE script at the very bottom of https://coronarenderer.freshdesk.com/support/solutions/articles/12000030886
Title: Re: CoronaImage.exe to be scripted
Post by: johan belmans on 2017-11-27, 11:44:36
I have experienced some problems with the batch script.
Posted on Mantis. https://corona-renderer.com/bugs/view.php?id=2919
Title: Re: CoronaImage.exe to be scripted
Post by: Frood on 2017-11-27, 11:53:53
Confirming, the asterisk as element name gets parsed wrongly no matter how quoted or escaped. Any other (valid) element name works.


Good Luck


Title: Re: CoronaImage.exe to be scripted
Post by: mike288 on 2017-11-27, 15:06:57
Thank you. We are aware of that and it will be fixed.
Title: Re: CoronaImage.exe to be scripted
Post by: Naxos on 2017-11-27, 15:27:26
You can find a sample batch CIE script at the very bottom of https://coronarenderer.freshdesk.com/support/solutions/articles/12000030886

Thank you, i did not know about this one...
Also, it would be nice to have such a batch into the GUI version.
Title: Re: CoronaImage.exe to be scripted
Post by: mike288 on 2017-12-12, 14:22:33
I have experienced some problems with the batch script.
Posted on Mantis. https://corona-renderer.com/bugs/view.php?id=2919

Confirming, the asterisk as element name gets parsed wrongly no matter how quoted or escaped. Any other (valid) element name works.

Good Luck

Hi, it has been fixed and the fix will be in next daily. The CIE batch script does not change and should work again with that daily.