Post #3275:
ac
📋 Metadata
- Author: roaoao
- Date: 2020-05-05 13:22:47
- Type:
answer - Quality Score: 8/10
- Reply to: post_03269
- Replies (1): post_03276
🏷️ Tags
macro python-scripting intermediate solved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
actimelvanille:
Is it possible to somehow get the name of the selected object and use it for export?
So that an object called “Cube” gets exported as Cube.fbx?
Hi @actimelvanille,
Try this code:
exec(bpy.ops.export_scene.fbx(filepath=r"C:\Users\Christian\`%s.fbx" % C.object.name, use_selection=True, global_scale=0.01, object_types={'MESH'}, mesh_smooth_type='FACE'))
❤️ 3 likes