Author Topic: CoronaImage.exe to be scripted  (Read 3087 times)

2017-11-25, 09:58:24

Naxos

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 203
    • View Profile
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.

2017-11-27, 11:14:47
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
You can find a sample batch CIE script at the very bottom of https://coronarenderer.freshdesk.com/support/solutions/articles/12000030886
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-11-27, 11:44:36
Reply #2

johan belmans

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 761
    • View Profile
    • belly.be

2017-11-27, 11:53:53
Reply #3

Frood

  • Active Users
  • **
  • Posts: 1922
    • View Profile
    • Rakete GmbH
Confirming, the asterisk as element name gets parsed wrongly no matter how quoted or escaped. Any other (valid) element name works.


Good Luck


Never underestimate the power of a well placed level one spell.

2017-11-27, 15:06:57
Reply #4

mike288

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 353
  • Michal 'Mike' Wirth
    • View Profile
Thank you. We are aware of that and it will be fixed.
Chaos Scatter developer | In case of crash, please send minidump | Private uploader: https://corona-renderer.com/upload

2017-11-27, 15:27:26
Reply #5

Naxos

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 203
    • View Profile
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.

2017-12-12, 14:22:33
Reply #6

mike288

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 353
  • Michal 'Mike' Wirth
    • View Profile
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.
Chaos Scatter developer | In case of crash, please send minidump | Private uploader: https://corona-renderer.com/upload