Skip to main content

CLO Help Center

How can we help you?

Export all Colorways as OBJ over Python API

Comments

  • aatteneder

    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
Please sign in to leave a comment.