I have files structure like this one:
. └── Environment ├── aa │ ├── aa │ │ ├── 1.tga │ │ └── 2.tga │ ├── aa.obj │ └── aa.mtl (with map_Kd links to ./aa/1(2).tga) ├── ab ... (other folders with similar structure)
So I need to create .blend file for each obj-mtl pair through command-line script that should be located in top-level folder (
Environment). Ideally, this new blend file must be at the same level with obj and mtl (
aa.blend). Manually I was imported files with default options, except splitting: by group, not by object.
By the way I did this task before manually, with many models… And then I found out that Bleder has API for doing stuff through Python scripts But I’m noobie at Python, Blender API (and generally in the Blender too).
If it matters I’ve use 2.82a at Linux Mint 19.2 64bit