Page 1 of 2

Command Line Export

Posted: Thu Aug 20, 2020 12:11 pm
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

Re: Command Line Export

Posted: Thu Aug 20, 2020 8:44 pm
by daniel
What error do you get?

Re: Command Line Export

Posted: Tue Dec 07, 2021 2:05 pm
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

Re: Command Line Export

Posted: Mon Dec 13, 2021 1:35 pm
by daniel
Hi,

Any chance you can share an example FBX file with me? (admin [at] cloudcompare.org)

Re: Command Line Export

Posted: Wed Dec 15, 2021 9:09 am
by Max-OpenpointAB
Sure!

Sent you an email with the file i've been working with.

Re: Command Line Export

Posted: Thu Dec 16, 2021 8:29 pm
by daniel
Unless I'm mistaken, I haven't received anything? You can maybe try to my other address: daniel.girardeau [at] gmail.com

Re: Command Line Export

Posted: Fri Dec 17, 2021 10:39 am
by Max-OpenpointAB
Hi,

I'll try the other adress, sent it just now so hopefully it arrives :)

Re: Command Line Export

Posted: Sun Dec 19, 2021 11:35 am
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?

Re: Command Line Export

Posted: Mon Dec 20, 2021 9:53 am
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!

Re: Command Line Export

Posted: Fri Dec 31, 2021 7:42 am
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.