I am trying to load some 3DS files with Python, but I don’t have any
idea. I try with the Load method of Blender class, but it´s not possible,
becuase only can load .blend files.
Does anybody know how can load 3DS files with Python?
ie no .py on the end…
then you can access functions within using a “.” and function name…
3ds_import.main
which will open a filebrowser to select the file to import
or
3ds_import.load_3ds(filename, context, IMPORT_CONSTRAIN_BOUNDS=10.0, IMAGE_SEARCH=True, APPLY_MATRIX=False)
which will need you to pass a filename to open and the context…
PS the filename will be a complete path to the file or a relative path from the working directory…
the “import” command doesn’t like the 3 at the start of the script name… also it seems to want it in the root of the scripts folder,(i had it in a symbollic-linked sub folder)
I suggest you copy it to the right place and rename it (eg “autodesk_import”) and then in your script you should be able to use