Author Topic: CXR Batch convert  (Read 5041 times)

2018-08-13, 12:40:41

Mario Rothenbühler

  • Active Users
  • **
  • Posts: 20
    • View Profile
    • ROBO STUDIO GmbH
Dear Corona Team, is there any Issue known about the batch converting?

Got a bunch of cxr files here... and running into weird issue some of them are not possible to convert.

Files are all 100% valid... and if i open one of the not correct convertet cxr... it shows everything is ok

Specs.
Files are local on SSD
Same effect on a local HDD

Content of the CoronaImageBatch.bat bellow the log

Here is the LOG of the CMD running the batch process
--------------------------------------------------------------------
Processing C:\convert\Fuss_0000.cxr
Processing C:\convert\Fuss_0001.cxr
Processing C:\convert\Fuss_0002.cxr
Processing C:\convert\Fuss_0003.cxr

Error: There are not selected any render elements that can be saved. You need to
 select at least one.

Please read the help for the editor. The appropriate part of the help can be pri
nted out by using one of the --help, --list-properties, or --list-examples argum
ents.
Processing C:\convert\Fuss_0004.cxr
Processing C:\convert\Fuss_0005.cxr
Processing C:\convert\Fuss_0006.cxr
Processing C:\convert\Fuss_0007.cxr
Processing C:\convert\Fuss_0008.cxr
Processing C:\convert\Fuss_0009.cxr
Processing C:\convert\Fuss_0010.cxr
Processing C:\convert\Fuss_0011.cxr
Processing C:\convert\Fuss_0012.cxr
Processing C:\convert\Fuss_0013.cxr
Processing C:\convert\Fuss_0014.cxr
Processing C:\convert\Fuss_0015.cxr
Processing C:\convert\Fuss_0016.cxr
Processing C:\convert\Fuss_0017.cxr
Processing C:\convert\Fuss_0018.cxr
Processing C:\convert\Fuss_0019.cxr
Processing C:\convert\Fuss_0020.cxr
Processing C:\convert\Fuss_0021.cxr
Processing C:\convert\Fuss_0022.cxr
Processing C:\convert\Fuss_0023.cxr
Processing C:\convert\Fuss_0024.cxr
Processing C:\convert\Fuss_0025.cxr
Processing C:\convert\Fuss_0026.cxr
Processing C:\convert\Fuss_0027.cxr
Processing C:\convert\Fuss_0028.cxr
Processing C:\convert\Fuss_0029.cxr
Processing C:\convert\Fuss_0030.cxr
Processing C:\convert\Fuss_0031.cxr
Processing C:\convert\Fuss_0032.cxr
Processing C:\convert\Fuss_0033.cxr
Processing C:\convert\Fuss_0034.cxr
Processing C:\convert\Fuss_0035.cxr

Error: There are not selected any render elements that can be saved. You need to
 select at least one.

Please read the help for the editor. The appropriate part of the help can be pri
nted out by using one of the --help, --list-properties, or --list-examples argum
ents.
Processing C:\convert\Fuss_0036.cxr
Processing C:\convert\Fuss_0037.cxr
Processing C:\convert\Fuss_0038.cxr
Processing C:\convert\Fuss_0039.cxr
Processing C:\convert\Fuss_0040.cxr
Processing C:\convert\Fuss_0041.cxr
Processing C:\convert\Fuss_0042.cxr
Processing C:\convert\Fuss_0043.cxr
Processing C:\convert\Fuss_0044.cxr
Processing C:\convert\Fuss_0045.cxr
Processing C:\convert\Fuss_0046.cxr
Processing C:\convert\Fuss_0047.cxr
Processing C:\convert\Fuss_0048.cxr
Processing C:\convert\Fuss_0049.cxr
Processing C:\convert\Fuss_0050.cxr
Processing C:\convert\Fuss_0051.cxr
Processing C:\convert\Fuss_0052.cxr
Processing C:\convert\Fuss_0053.cxr
Processing C:\convert\Fuss_0054.cxr
Processing C:\convert\Fuss_0055.cxr
Processing C:\convert\Fuss_0056.cxr
Processing C:\convert\Fuss_0057.cxr
Processing C:\convert\Fuss_0058.cxr
Processing C:\convert\Fuss_0059.cxr

Error: There are not selected any render elements that can be saved. You need to
 select at least one.

Please read the help for the editor. The appropriate part of the help can be pri
nted out by using one of the --help, --list-properties, or --list-examples argum
ents.
Processing C:\convert\Fuss_0060.cxr
Processing C:\convert\Fuss_0061.cxr
Processing C:\convert\Fuss_0062.cxr
Processing C:\convert\Fuss_0063.cxr
Processing C:\convert\Fuss_0064.cxr
Processing C:\convert\Fuss_0065.cxr
Processing C:\convert\Fuss_0066.cxr
Processing C:\convert\Fuss_0067.cxr
Processing C:\convert\Fuss_0068.cxr
Processing C:\convert\Fuss_0069.cxr

Error: There are not selected any render elements that can be saved. You need to
 select at least one.

Please read the help for the editor. The appropriate part of the help can be pri
nted out by using one of the --help, --list-properties, or --list-examples argum
ents.
Processing C:\convert\Fuss_0070.cxr
Processing C:\convert\Fuss_0071.cxr

Error: There are not selected any render elements that can be saved. You need to
 select at least one.

Please read the help for the editor. The appropriate part of the help can be pri
nted out by using one of the --help, --list-properties, or --list-examples argum
ents.
Processing C:\convert\Fuss_0072.cxr
Processing C:\convert\Fuss_0073.cxr
Processing C:\convert\Fuss_0074.cxr
Processing C:\convert\Fuss_0075.cxr
Processing C:\convert\Fuss_0076.cxr


-----------------------------------------------------------------------------------------------------------------

:: Corona Image Editor - batch processing command-line script
:: Render Legion s.r.o., 2014-2017
:: www.corona-renderer.com

@echo off

:: Selects a render element that should be processed and saved. It could be
:: either the name of a single render element as it is presented in the GUI
:: version of the editor (for instance, the beauty render element BEAUTY),
:: or the asterisk symbol (*) for selecting all render elements at once.
set inputElement=BEAUTY

:: Selects an image format to use for saving output images. Could be either
:: png, bmp, jpg, exr, or cxr for the Corona EXR format.
set outputFormat=png

:: Sets the expected name of a configuration file to be used to define the
:: postprocessing settings. The easiest way to create the configuration file is
:: to save it directly from the GUI version of the editor, or to save it from
:: the Corona VFB.
set postprocessConfig=Postprocess.conf

:: Same as above, but for LightMix settings.
set lightMixConfig=LightMix.conf

:: Sets a path to the command-line version of the editor which is being used
:: for processing images. Usually there is no need to change this.
set editorExecutable=C:\Program Files\Corona\CoronaImageCmd.exe


:: DO NOT EDIT BELOW THIS POINT

setlocal EnableDelayedExpansion

for /r %%f in (*.cxr) do (
   set editorArguments=

   if exist "%postprocessConfig%" (
       set editorArguments=!editorArguments! --config "%postprocessConfig%"
   )
   if exist "%lightMixConfig%" (
       set editorArguments=!editorArguments! --config "%lightMixConfig%"
   )
   set editorArguments=!editorArguments! --element "%inputElement%"
   
   set inputImage=%%f
   set editorArguments=!editorArguments! "!inputImage!"
   set outputImage=%%~df%%~pfPost_%%~nf.%outputFormat%
   set editorArguments=!editorArguments! "!outputImage!"

   echo Processing !inputImage!
   "%editorExecutable%" !editorArguments!
)












ROBO STUDIO GmbH
Ringstrasse 40  | 4900 Langenthal
mr@robostudio.swiss  | Mobile: +41 794 808 193
www.robostudio.swiss

2018-08-14, 07:29:25
Reply #1

mike288

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 353
  • Michal 'Mike' Wirth
    • View Profile
hi, please, can you share the C:\convert\Fuss_0003.cxr file so we can investigate what's going on? You can use our private uploader for that https://corona-renderer.com/upload
Chaos Scatter developer | In case of crash, please send minidump | Private uploader: https://corona-renderer.com/upload

2020-08-03, 17:13:07
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12714
  • Marcin
    • View Profile
This should be fixed in V6 RC1. Please try it if possible, and let us know if there is still some problem.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us