Bug in Python API - Exporting OBJ does not work
Hello there. Hope you are having a great day.
The export-obj-file function from the Python example code does not work. I suspect that there is a bug in the API.
Specifically, the function does not export any .obj files. It just exports a meta file in .xml format and a .zip file containing some avatar textures.
The example function I used that didn't work is "run_multi_example_with_obj_exoprt_option" from example.py. I tested that function thoroughly but cannot get it to work. Then I wrote my own function, which didn't work either. 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()
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. See this link for details: https://support.clo3d.com/hc/en-us/articles/360000945448?page=1#comment_900002189046
Can you guys please look into this? I really need to use Python to export large amounts of obj files that are impractical to do manually.
-
Hello, we are waiting for an answer from our API person and get back to you in January. Kindest regards, CLO
1 -
Thank you. Looking forward to it.
0 -
Hello, thank you for waiting. There were some issues with Python API but recently it was solved in CLO 6.2. Have you tried the latest version? Kindest regards, CLO
0
Comments