User Tools

Site Tools


soft:simeo:private:a_script_to_convert_a_.ops_file_to_wavefront_.obj_standard_format

A script to convert a .ops file to Wavefront .obj standard format

An AMAPstudio .ops scene can be converted into a .obj file with Simeo > Edito in interactive mode. This is also possible with the following script in a terminal. This script will load the .ops in read only mode (no file copies) and will make the job faster.

The result file(s) will be written in the same directory than the ops file.

These commands must be called from the AMAPstudio install dir.

// Example under Linux
sh simeo.sh -p script jeeb.simeo.module.simeoeditor.scripts.Ops2Obj data/ops/littleScene.ops

// Example under Windows
simeo -p script jeeb.simeo.module.simeoeditor.scripts.Ops2Obj data/ops/littleScene.ops
coligny@marvin-13:~/workspace/amapstudio$ sh simeo.sh -p script jeeb.simeo.module.simeoeditor.scripts.Ops2Obj data/ops/littleScene.ops
-> OS/JVM/memory: linux/64/8000m
Default locale is: en 
Simeo root directory: /home/coligny/workspace/amapstudio
Simeo 1.0, (c) 2006-2014 F. de Coligny et al.
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it
under certain conditions; See COPYING and COPYING.LESSER for details.

Simeo 1.0-4535 with pilot capsis.script.Pilot: correct boot at 19 Sep 2014 16:09:15 CEST

Launching script jeeb.simeo.module.simeoeditor.scripts.Ops2Obj...
Ops2Obj...
opsFileName: data/ops/littleScene.ops
Loading scene... 
EditoInitialParameters buildInitScene ()...
  initXExtension: 50.0
  initYExtension: 50.0
-> Creating a cache for scene +1 in *overwrite mode* (overwrite original files, no copies to automatic directories)
Copying files...
EditoModel createScene () addingMockup: /home/coligny/workspace/amapstudio/data/ops/opf/p3-mod_Scarrone_7.opf
Loading /home/coligny/workspace/amapstudio/data/ops/opf/p3-mod_Scarrone_7.opf...
Loading /home/coligny/workspace/amapstudio/data/ops/opf/p3-mod_Scarrone_7.opf...
Loading /home/coligny/workspace/amapstudio/data/ops/opf/p3-mod_Scarrone_7.opf done
EditoModel createScene () addingMockup: /home/coligny/workspace/amapstudio/data/ops/opf/p1-mod_Rauh_14.opf
Loading /home/coligny/workspace/amapstudio/data/ops/opf/p1-mod_Rauh_14.opf...
Loading /home/coligny/workspace/amapstudio/data/ops/opf/p1-mod_Rauh_14.opf...
Loading /home/coligny/workspace/amapstudio/data/ops/opf/p1-mod_Rauh_14.opf done
EditoModel createScene () addingMockup: /home/coligny/workspace/amapstudio/data/ops/opf/p4-mod_Massart_10.opf
Loading /home/coligny/workspace/amapstudio/data/ops/opf/p4-mod_Massart_10.opf...
Loading /home/coligny/workspace/amapstudio/data/ops/opf/p4-mod_Massart_10.opf...
Loading /home/coligny/workspace/amapstudio/data/ops/opf/p4-mod_Massart_10.opf done
Initialization completed
Memorizer capsis.extension.memorizer.DefaultMemorizer was correctly set for project Project_edito.p
Exporting to .obj... 
EditoMockup e3-p3-mod_Scarrone_7.opf (/home/coligny/workspace/amapstudio/data/ops/opf/p3-mod_Scarrone_7.opf): getReadOnlyArchiTree ()...
  scene: jeeb.simeo.module.simeoeditor.model.EditoScene@631a1a0a
  scene.getEditoCache(): jeeb.simeo.module.simeoeditor.model.EditoOverwriteCache@46a3b95a
EditoMockup e1-p1-mod_Rauh_14.opf (/home/coligny/workspace/amapstudio/data/ops/opf/p1-mod_Rauh_14.opf): getReadOnlyArchiTree ()...
  scene: jeeb.simeo.module.simeoeditor.model.EditoScene@631a1a0a
  scene.getEditoCache(): jeeb.simeo.module.simeoeditor.model.EditoOverwriteCache@46a3b95a
EditoMockup e4-p4-mod_Massart_10.opf (/home/coligny/workspace/amapstudio/data/ops/opf/p4-mod_Massart_10.opf): getReadOnlyArchiTree ()...
  scene: jeeb.simeo.module.simeoeditor.model.EditoScene@631a1a0a
  scene.getEditoCache(): jeeb.simeo.module.simeoeditor.model.EditoOverwriteCache@46a3b95a
Closing project... 
Ops2Obj succeeded, wrote in data/ops

The saved .obj file can be viewed in Blender.

soft/simeo/private/a_script_to_convert_a_.ops_file_to_wavefront_.obj_standard_format.txt ยท Last modified: 2021/12/17 09:22 by 127.0.0.1