Export each object on scene to another file
-
16-04-2021 - |
Question
I want to ask you, how can I export all objects to scene to seperate files in blender using python scripts ? I want to export it to fbx, to have something like this: Object File Car Car.fbx Boat Boat.fbx etc..
Each object will be have his of file. I'm tring to use 'export_fbx.py', I paste source to editor in blender, and write something below pasted code like:
for ob in bpy.data.objects:
save(bpy.ops.mesh,ob,'C:\\images\\'+ ob.name + '.fbx')
But this doesn't work :/ I need something like this, beacouse I have 45 objects in scene, and I have to export each other to fbx, to import it in XNA.
Solution
loop over all objects in the scene selecting each individually and calling bpy.ops.export_scene.fbx with the use_selection parameter set
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow