Export all Colorways as OBJ over Python API
Hello,
would like to export multiples colorways out of different Zprj files. In order that CLO now provides an Python Script API I though of automate this steps.
There are couple of ideas, but non of them seems feasible with the current API state. First I thought the the open_garment_file_path will manage that for me, but from my point I don't see an option where I can choose the colorways. Also open a garmet and deleting the colorways except one is not supported from the API.
Exporting the file as OBJ should be clear - but I really need all variations of those Zprj.
Hope that anybody can help me to manage this task for couple of files.
Thanks in advance.
regards sebastian
-
Same here. Running this code does seem to load the garment (fabric list fills up), but then cleans the scene and exports an empty OBJ file.
def do_it(self,mdsa, file_path, output_path):
mdsa.clear_console()
mdsa.initialize()
mdsa.set_open_option("mm", 30)
mdsa.set_save_option("m", 30, False)
mdsa.garment_file_open(file_path)
mdsa.set_garment_file_path(file_path)
mdsa.set_save_file_path( output_path )
mdsa.process()0
Comments