开发者

Export each object on scene to another file

开发者 https://www.devze.com 2023-02-21 22:52 出处:网络
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:

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.


as per http://www.blender.org/documentation/blender_python_api_2_61_0/bpy.ops.export_scene.html#bpy.ops.export_scene.fbx

loop over all objects in the scene selecting each individually and calling bpy.ops.export_scene.fbx with the use_selection parameter set

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号