Hi, I'm using MD python API to export garment as obj mesh.
From the python API document, if I provide ImportExportOption, the Export Dialog should not pop up. https://developer.marvelousdesigner.com/list.html
def ExportOBJ(_filePath : str, _options : ImportExportOption) -> list[str]
"""
@brief Export OBJ file
@param _filePath: output file path
@param options: If "options" is given, it exports OBJ according to options, not allowing user for selecting options in Export Dialog.
@return Output file paths. It outputs the file paths of an OBJ file and multiple MTL files for colorways. If the value "bSaveInZip" in ImportExportOption is true, it outputs a file path of a zipped file. If an error occurs, return empty string. If filePath parameter is not given, output files will be created in CLO temporary folder.
"""
But even though I provide both filePath and ImportExportOption parameters, the Export Dialog still pops up, here is my code
opt = ApiTypes.ImportExportOption()
opt.bExportGarment = True
opt.bExportAvatar = False
opt.bSingleObject = True
ret = export_api.ExportOBJ(obj_file, opt)
Is there any problem in my code, How can I export obj directly without any popups? Thanks!
- ● Marvelous Designer Version (ex: 7.1.111) : 2024.1
- ● OS Type : Windows
- ● CPU : Interl i7-13700K
- ● Graphic Card : RTX 4060Ti
Please send us a support ticket at http://marvelousdesigner.com/support/contact and make sure to include your valid user ID or please login with the email associated with the account that has an active license.
Post is closed for comments.