Python API - Exporting OBJ does not work
Is anyone able to export OBJ file using the Python API?
It does not export any .obj file, just a meta file in XML format and a compressed file containing some avatar textures.
The example function I used (run_multi_example_with_obj_exoprt_option) in example.py does not work. Then I wrote my own function, which didn't work either. So I suspect that there's a bug in the Python API. Here is the code I've written.
def export_obj(self, object):
object.clear_console()
object.initialize()
object.set_import_scale_unit("mm")
object.set_export_scale_unit("mm")
object.set_garment_file_path(my_garment_path)
object.set_avatar_file_path(my_avatar_path)
object.set_animation_file_path(my_animation_path)
object.set_save_folder_path(my_output_path, "obj")
object.set_auto_save(False)
object.process()
0
-
In addition, I've found out that another user has the same issue, which further convinced me that there is a bug in the API.
0
Comments