Hi
I have C4d r11 and using exporter 11c to build 2.58. All fine except when I export the camera from any model I get an error, the heading of which reads:
There was an error parsing the command-line arguments:
Couldn't find match for argument Argument: 0
I can post the full message if necessary
I've tried changing units and so on, but no luck. And the export is always successful without the camera. Any thoughts please?
C4D r11 camera problem with 11c
Moderators: ChrisHekman, aoktar
Could you post a screenshot of the C4D console window? It should show the command line that was used to open Octane.Daveyay wrote:Hi
I have C4d r11 and using exporter 11c to build 2.58. All fine except when I export the camera from any model I get an error, the heading of which reads:
There was an error parsing the command-line arguments:
Couldn't find match for argument Argument: 0
I can post the full message if necessary
I've tried changing units and so on, but no luck. And the export is always successful without the camera. Any thoughts please?
Thanks,
Marcus
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
oh man, are you back?abstrax wrote:Thanks,
Marcus
i can't believe

this is the best birthday present that i could have (one day before to tell the truth)

ciao beppe


- AndersBackman
- Posts: 2
- Joined: Thu Oct 28, 2010 6:04 pm
I have the same problem. Octane works fine when exporting from C4D except when I check "Export Camera". When I try to export the camera, then Octane opens with this popup.
There was an error parsing the command-line arguments:
Couldn't find match for argument Argument: 0
USAGE:
dummy program name [-m <string>] [-r <filename>] [-l <filename>] [-n
<filename>] [--imager-exposure <float>]
[--daylight-sundir-z <float>] [--daylight-sundir-y
<float>] [--daylight-sundir-x <float>]
[--cam-aperture <float>] [--cam-focaldepth <float>]
[--cam-fov <float>] [--cam-motion-up-z <float>]
[--cam-motion-up-y <float>] [--cam-motion-up-x
<float>] [--cam-motion-target-z <float>]
[--cam-motion-target-y <float>]
[--cam-motion-target-x <float>] [--cam-motion-pos-z
<float>] [--cam-motion-pos-y <float>]
[--cam-motion-pos-x <float>] [--cam-up-z <float>]
[--cam-up-y <float>] [--cam-up-x <float>]
[--cam-target-z <float>] [--cam-target-y <float>]
[--cam-target-x <float>] [--cam-pos-z <float>]
[--cam-pos-y <float>] [--cam-pos-x <float>] [-q] [-g
<int>] ... [-s <int>] [-o <filename>]
[--film-height <int>] [--film-width <int>] [-e] [--]
[--version] [-h] <filename>
Where:
-m <string>, --mesh-node <string>
Name of meshnode to render
-r <filename>, --relink-meshnode <filename>
Name of OBJ mesh file to relink rendered meshnoded with
-l <filename>, --link-meshnode <filename>
Name of OBJ mesh file to link after startup
-n <filename>, --new <filename>
Create a new OCS project file from given command line arguments
--imager-exposure <float>
Imager Exposure Amount
--daylight-sundir-z <float>
Daylight Sun Direction Vector Z Component
--daylight-sundir-y <float>
Daylight Sun Direction Vector Y Component
--daylight-sundir-x <float>
Daylight Sun Direction Vector X Component
--cam-aperture <float>
Camera Aperture Radius
--cam-focaldepth <float>
Camera Focal Depth
--cam-fov <float>
Camera FOV (degrees)
--cam-motion-up-z <float>
Camera Up Motion 2nd Vector Z Component
--cam-motion-up-y <float>
Camera Up Motion 2nd Vector Y Component
--cam-motion-up-x <float>
Camera Up Motion 2nd Vector X Component
--cam-motion-target-z <float>
Camera Target Motion 2nd Position Z Component
--cam-motion-target-y <float>
Camera Target Motion 2nd Position Y Component
--cam-motion-target-x <float>
Camera Target Motion 2nd Position X Component
--cam-motion-pos-z <float>
Camera Motion 2nd Position Z Component
--cam-motion-pos-y <float>
Camera Motion 2nd Position Y Component
--cam-motion-pos-x <float>
Camera Motion 2nd Position X Component
--cam-up-z <float>
Camera Up Vector Z Component
--cam-up-y <float>
Camera Up Vector Y Component
--cam-up-x <float>
Camera Up Vector X Component
--cam-target-z <float>
Camera Target Position Z Component
--cam-target-y <float>
Camera Target Position Y Component
--cam-target-x <float>
Camera Target Position X Component
--cam-pos-z <float>
Camera Position Z Component
--cam-pos-y <float>
Camera Position Y Component
--cam-pos-x <float>
Camera Position X Component
-q, --quiet
Start Application without splash and minimized window
-g <int>, --gpu <int> (accepted multiple times)
add GPU device to use for rendering (0 = first)
-s <int>, --samples <int>
Maximum number of samples per pixel (maxsamples)
-o <filename>, --output-png <filename>
Output PNG imagefile when maxsamples is reached
--film-height <int>
Film height
--film-width <int>
Film width
-e, --exit
Close the application when rendering is done
--, --ignore_rest
Ignores the rest of the labeled arguments following this flag.
--version
Displays version information and exits.
-h, --help
Displays usage information and exits.
<filename>
.OCS Project scene file
Octane Render
The C4D console says this:
"C:\Program Files\Octane\octane.exe" -n "C:\Users\Anders\Desktop\OctaneTest\RaceBoat_02.ocs" -m RaceBoat_02 -l "C:\Users\Anders\Desktop\OctaneTest\RaceBoat_02.obj" --film-width 1280 --film-height 544 --cam-pos-x 42.350042 --cam-pos-y 206.99491 --cam-pos-z -156.65632 --cam-target-x -115.66944 --cam-target-y 115.64547 --cam-target-z 32.728856 --cam-up-x -1.0729283e-008 --cam-up-y 1 --cam-up-z -8.9523148e-009 --cam-fov 90 --cam-lensshift-right 0 --cam-lensshift-up -0
Can't see anything wrong with my paths.
Daveyay - what path set did you change?
There was an error parsing the command-line arguments:
Couldn't find match for argument Argument: 0
USAGE:
dummy program name [-m <string>] [-r <filename>] [-l <filename>] [-n
<filename>] [--imager-exposure <float>]
[--daylight-sundir-z <float>] [--daylight-sundir-y
<float>] [--daylight-sundir-x <float>]
[--cam-aperture <float>] [--cam-focaldepth <float>]
[--cam-fov <float>] [--cam-motion-up-z <float>]
[--cam-motion-up-y <float>] [--cam-motion-up-x
<float>] [--cam-motion-target-z <float>]
[--cam-motion-target-y <float>]
[--cam-motion-target-x <float>] [--cam-motion-pos-z
<float>] [--cam-motion-pos-y <float>]
[--cam-motion-pos-x <float>] [--cam-up-z <float>]
[--cam-up-y <float>] [--cam-up-x <float>]
[--cam-target-z <float>] [--cam-target-y <float>]
[--cam-target-x <float>] [--cam-pos-z <float>]
[--cam-pos-y <float>] [--cam-pos-x <float>] [-q] [-g
<int>] ... [-s <int>] [-o <filename>]
[--film-height <int>] [--film-width <int>] [-e] [--]
[--version] [-h] <filename>
Where:
-m <string>, --mesh-node <string>
Name of meshnode to render
-r <filename>, --relink-meshnode <filename>
Name of OBJ mesh file to relink rendered meshnoded with
-l <filename>, --link-meshnode <filename>
Name of OBJ mesh file to link after startup
-n <filename>, --new <filename>
Create a new OCS project file from given command line arguments
--imager-exposure <float>
Imager Exposure Amount
--daylight-sundir-z <float>
Daylight Sun Direction Vector Z Component
--daylight-sundir-y <float>
Daylight Sun Direction Vector Y Component
--daylight-sundir-x <float>
Daylight Sun Direction Vector X Component
--cam-aperture <float>
Camera Aperture Radius
--cam-focaldepth <float>
Camera Focal Depth
--cam-fov <float>
Camera FOV (degrees)
--cam-motion-up-z <float>
Camera Up Motion 2nd Vector Z Component
--cam-motion-up-y <float>
Camera Up Motion 2nd Vector Y Component
--cam-motion-up-x <float>
Camera Up Motion 2nd Vector X Component
--cam-motion-target-z <float>
Camera Target Motion 2nd Position Z Component
--cam-motion-target-y <float>
Camera Target Motion 2nd Position Y Component
--cam-motion-target-x <float>
Camera Target Motion 2nd Position X Component
--cam-motion-pos-z <float>
Camera Motion 2nd Position Z Component
--cam-motion-pos-y <float>
Camera Motion 2nd Position Y Component
--cam-motion-pos-x <float>
Camera Motion 2nd Position X Component
--cam-up-z <float>
Camera Up Vector Z Component
--cam-up-y <float>
Camera Up Vector Y Component
--cam-up-x <float>
Camera Up Vector X Component
--cam-target-z <float>
Camera Target Position Z Component
--cam-target-y <float>
Camera Target Position Y Component
--cam-target-x <float>
Camera Target Position X Component
--cam-pos-z <float>
Camera Position Z Component
--cam-pos-y <float>
Camera Position Y Component
--cam-pos-x <float>
Camera Position X Component
-q, --quiet
Start Application without splash and minimized window
-g <int>, --gpu <int> (accepted multiple times)
add GPU device to use for rendering (0 = first)
-s <int>, --samples <int>
Maximum number of samples per pixel (maxsamples)
-o <filename>, --output-png <filename>
Output PNG imagefile when maxsamples is reached
--film-height <int>
Film height
--film-width <int>
Film width
-e, --exit
Close the application when rendering is done
--, --ignore_rest
Ignores the rest of the labeled arguments following this flag.
--version
Displays version information and exits.
-h, --help
Displays usage information and exits.
<filename>
.OCS Project scene file
Octane Render
The C4D console says this:
"C:\Program Files\Octane\octane.exe" -n "C:\Users\Anders\Desktop\OctaneTest\RaceBoat_02.ocs" -m RaceBoat_02 -l "C:\Users\Anders\Desktop\OctaneTest\RaceBoat_02.obj" --film-width 1280 --film-height 544 --cam-pos-x 42.350042 --cam-pos-y 206.99491 --cam-pos-z -156.65632 --cam-target-x -115.66944 --cam-target-y 115.64547 --cam-target-z 32.728856 --cam-up-x -1.0729283e-008 --cam-up-y 1 --cam-up-z -8.9523148e-009 --cam-fov 90 --cam-lensshift-right 0 --cam-lensshift-up -0
Can't see anything wrong with my paths.
Daveyay - what path set did you change?
The problem is the first parameter:
-n "C:\Users\Anders\Desktop\OctaneTest\RaceBoat_02.ocs"
-n will create a new ocs-file
It should be like this:
octane.exe -m test.obj -r "G:\Octane\ProjectA\test.obj" --cam-up-x -0.228925 --cam-up-y 0.918097 --cam-up-z -0.323561 --cam-target-x 1.77636e-015 --cam-target-y -4.44089e-015 --cam-target-z 0 --cam-pos-x 10.6582 --cam-pos-y 7.96666 --cam-pos-z 15.0643 --cam-fov 53.638 --cam-aperture 1 --cam-focaldepth 5 --imager-exposure 1 "G:\Octane\ProjectA\test.ocs"
face
-n "C:\Users\Anders\Desktop\OctaneTest\RaceBoat_02.ocs"
-n will create a new ocs-file
It should be like this:
octane.exe -m test.obj -r "G:\Octane\ProjectA\test.obj" --cam-up-x -0.228925 --cam-up-y 0.918097 --cam-up-z -0.323561 --cam-target-x 1.77636e-015 --cam-target-y -4.44089e-015 --cam-target-z 0 --cam-pos-x 10.6582 --cam-pos-y 7.96666 --cam-pos-z 15.0643 --cam-fov 53.638 --cam-aperture 1 --cam-focaldepth 5 --imager-exposure 1 "G:\Octane\ProjectA\test.ocs"
face
Win10 Pro, Driver 378.78, Softimage 2015SP2 & Octane 3.05 RC1,
64GB Ram, i7-6950X, GTX1080TI 11GB
http://vimeo.com/user2509578
64GB Ram, i7-6950X, GTX1080TI 11GB
http://vimeo.com/user2509578
- AndersBackman
- Posts: 2
- Joined: Thu Oct 28, 2010 6:04 pm
Ok. So now I've gotten the exporter to spit this out (which seems to be about the same as you suggested):
"C:\Program Files\Octane\octane.exe" -m RaceBoat_02 -r "C:\Users\Anders\Desktop\OctaneTest\RaceBoat_02.obj" --cam-pos-x 42.350042 --cam-pos-y 206.99491 --cam-pos-z -156.65632 --cam-target-x -115.66944 --cam-target-y 115.64547 --cam-target-z 32.728856 --cam-up-x -1.0729283e-008 --cam-up-y 1 --cam-up-z -8.9523148e-009 --cam-fov 90 --cam-lensshift-right 0 --cam-lensshift-up -0 "C:\Users\Anders\Desktop\OctaneTest\RaceBoat_02.ocs"
Still the same error message when entering Octane though. Unless I deselect camera export.
"C:\Program Files\Octane\octane.exe" -m RaceBoat_02 -r "C:\Users\Anders\Desktop\OctaneTest\RaceBoat_02.obj" --cam-pos-x 42.350042 --cam-pos-y 206.99491 --cam-pos-z -156.65632 --cam-target-x -115.66944 --cam-target-y 115.64547 --cam-target-z 32.728856 --cam-up-x -1.0729283e-008 --cam-up-y 1 --cam-up-z -8.9523148e-009 --cam-fov 90 --cam-lensshift-right 0 --cam-lensshift-up -0 "C:\Users\Anders\Desktop\OctaneTest\RaceBoat_02.ocs"
Still the same error message when entering Octane though. Unless I deselect camera export.
The -m RaceBoat_02 should be -m RaceBoat_02.obj.
face
face
Win10 Pro, Driver 378.78, Softimage 2015SP2 & Octane 3.05 RC1,
64GB Ram, i7-6950X, GTX1080TI 11GB
http://vimeo.com/user2509578
64GB Ram, i7-6950X, GTX1080TI 11GB
http://vimeo.com/user2509578
Hi Anders and Face,
If the mesh node must be named like the OBJ file, then this is a recent change in Octane. I need to look at it tomorrow. -m should specify only the mesh node to render, which can be named anything. The C4D exporter always omitted the .obj suffix which was fine until now.
I think the problem is the parameter "--cam-lensshift-up -0". I guess, for some reason the command line parser of Octane reads "-0" as an argument and not as number/value.
You can try this by slightly changing the "Film Offset Y" in the C4D camera you are exporting. If it works, then this was the problem.
Cheers,
Marcus
If the mesh node must be named like the OBJ file, then this is a recent change in Octane. I need to look at it tomorrow. -m should specify only the mesh node to render, which can be named anything. The C4D exporter always omitted the .obj suffix which was fine until now.
I think the problem is the parameter "--cam-lensshift-up -0". I guess, for some reason the command line parser of Octane reads "-0" as an argument and not as number/value.
You can try this by slightly changing the "Film Offset Y" in the C4D camera you are exporting. If it works, then this was the problem.
Cheers,
Marcus
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra