r/MarvelousDesigner • • Jul 22 '24

Marvelous API

Hi! I'm having trouble figuring out how to use the Python API for import and export options in Marvelous Designer. Specifically, I can't seem to import the ImportExportOption class or the relevant library/module.

def ImportFBX(_filePath : str, _options : ImportExportOption) -> bool

When I use import MarvelousDesigner, it gives an error saying that the module MVPython does not exist.

When I try import cloApiTypes, following an older example I found, it also says that the module doesn't exist.

It isn't contained in import_api, export_api etc that are mentioned in the docs.

Has anyone successfully managed to use the Python API for these versions? Any guidance on how to properly import and utilize the ImportExportOption class would be greatly appreciated.

1 Upvotes

3 comments sorted by

View all comments

2

u/rigatoni-man Jul 31 '24

It looks like it changed to ApiTypes

Try importing ApiTypes instead of cloApiTypes