Command Line Export
Command Line Export
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
I tried using this command:
CloudCompare -O -GLOBAL_SHIFT AUTO Example.obj -M_EXPORT_FMT FBX -FBX -EXPORT_FMT FBX_binary -SAVE_MESHES
-
- Posts: 4
- Joined: Fri Jun 11, 2021 8:25 am
Re: Command Line Export
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
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
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
Re: Command Line Export
Hi,
Any chance you can share an example FBX file with me? (admin [at] cloudcompare.org)
Any chance you can share an example FBX file with me? (admin [at] cloudcompare.org)
Daniel, CloudCompare admin
-
- Posts: 4
- Joined: Fri Jun 11, 2021 8:25 am
Re: Command Line Export
Sure!
Sent you an email with the file i've been working with.
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
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
Re: Command Line Export
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
-
- Posts: 4
- Joined: Fri Jun 11, 2021 8:25 am
Re: Command Line Export
Hi,
I'll try the other adress, sent it just now so hopefully it arrives :)
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
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
Re: Command Line Export
Ok, I received the file!
On my side, the following command line seems to work fine:
(it creates one FBX file per mesh)
Which version are you using?
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
I'm using the latest 2.12.beta version.[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
Which version are you using?
Daniel, CloudCompare admin
-
- Posts: 4
- Joined: Fri Jun 11, 2021 8:25 am
Re: Command Line Export
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!
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
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
Re: Command Line Export
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.
I can only see the latest version of 2.11.3 on the official website.
Thank you.