Command Line Export

Feel free to ask any question here
JordanRO2
Posts: 1
Joined: Thu Aug 20, 2020 11:59 am

Command Line Export

Post by JordanRO2 »

Hello I have been recently trying to load a OBJ file and export it has FBX using the command line, but couldn't make it work...
I tried using this command:
CloudCompare -O -GLOBAL_SHIFT AUTO Example.obj -M_EXPORT_FMT FBX -FBX -EXPORT_FMT FBX_binary -SAVE_MESHES
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command Line Export

Post by daniel »

What error do you get?
Daniel, CloudCompare admin
Max-OpenpointAB
Posts: 4
Joined: Fri Jun 11, 2021 8:25 am

Re: Command Line Export

Post by Max-OpenpointAB »

Hi,

I got a similar problem trying to export multiple meshes from one imported FBX file with multiple meshes inside it.

I'm using this command to streamline and simplify the process for the whole office.

SETLOCAL EnableDelayedExpansion
cd /D %~dp0
set _filelist=
for /f "delims=|" %%f in ('dir /b "*.fbx"') do (
set "_filelist=!_filelist! -O %%f"
)
set _filelist=%_filelist:,,=%
rem echo %_filelist% > filelist.txt
"C:\Program Files\CloudCompare\CloudCompare.exe" -silent %_filelist% -LOG_FILE .\log.txt -AUTO_SAVE off -M_EXPORT_FMT FBX -FBX -EXPORT_FMT FBX_binary -SAVE_MESHES

It seams like when the script reaches "-FBX -EXPORT_FMT FBX_binary" it stops with the following:

Auto-save is disabled
Output export format (meshes) set to: FBX
[FBX]
FBX format: FBX_binary

I have tried to switch everything around in the script with no success. What may the problem be?
I'm able to export the files separately to .bin if I don't specify the FBX format.

Kindly,
Max Isero
Max Isero
BIM-Projektör
max@openpoint.se

Openpoint AB
Kungsholms Strand 125
112 33 Stockholm, Sweden
+46 (0)76 139 87 06
info@openpoint.se
www.openpoint.se
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command Line Export

Post by daniel »

Hi,

Any chance you can share an example FBX file with me? (admin [at] cloudcompare.org)
Daniel, CloudCompare admin
Max-OpenpointAB
Posts: 4
Joined: Fri Jun 11, 2021 8:25 am

Re: Command Line Export

Post by Max-OpenpointAB »

Sure!

Sent you an email with the file i've been working with.
Max Isero
BIM-Projektör
max@openpoint.se

Openpoint AB
Kungsholms Strand 125
112 33 Stockholm, Sweden
+46 (0)76 139 87 06
info@openpoint.se
www.openpoint.se
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command Line Export

Post by daniel »

Unless I'm mistaken, I haven't received anything? You can maybe try to my other address: daniel.girardeau [at] gmail.com
Daniel, CloudCompare admin
Max-OpenpointAB
Posts: 4
Joined: Fri Jun 11, 2021 8:25 am

Re: Command Line Export

Post by Max-OpenpointAB »

Hi,

I'll try the other adress, sent it just now so hopefully it arrives :)
Max Isero
BIM-Projektör
max@openpoint.se

Openpoint AB
Kungsholms Strand 125
112 33 Stockholm, Sweden
+46 (0)76 139 87 06
info@openpoint.se
www.openpoint.se
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command Line Export

Post by daniel »

Ok, I received the file!

On my side, the following command line seems to work fine:

Code: Select all

CloudCompare.exe -silent -O F:\Data\FBX\Volumes.fbx  -M_EXPORT_FMT FBX -FBX -EXPORT_FMT FBX_binary -SAVE_MESHES
(it creates one FBX file per mesh)
[SAVING]
[FBX] Autodesk FBX SDK version 2020.0.1 Release (a950256aa)
[FBX] Default output file format: FBX_binary
[I/O] File 'F:/Data/FBX/Volumes_86_2021-12-19_12h32_14_916.fbx' saved successfully
I'm using the latest 2.12.beta version.

Which version are you using?
Daniel, CloudCompare admin
Max-OpenpointAB
Posts: 4
Joined: Fri Jun 11, 2021 8:25 am

Re: Command Line Export

Post by Max-OpenpointAB »

Hi Daniel!

I was using 2.11.4

I installed the latest version of CC, sure enough it worked like a charm!

Thank you for all your hard work making this program what it is, and thank you for all your help with this particular problem!

Merry Christmas, and happy holidays!
Max Isero
BIM-Projektör
max@openpoint.se

Openpoint AB
Kungsholms Strand 125
112 33 Stockholm, Sweden
+46 (0)76 139 87 06
info@openpoint.se
www.openpoint.se
xiaolu
Posts: 36
Joined: Fri Apr 02, 2021 9:42 am

Re: Command Line Export

Post by xiaolu »

Hello, I'd like to ask where to download version 2.11.4.
I can only see the latest version of 2.11.3 on the official website.
Thank you.
Post Reply