Post #3319:
ac
📋 Metadata
- Author: roaoao
- Date: 2020-05-29 11:58:45
- Type:
answer - Quality Score: 7/10
- Reply to: post_03314
- Replies (1): post_03323
🏷️ Tags
macro python-scripting intermediate solved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
actimelvanille:
i’m trying to get this to work:
exec(bpy.ops.export_mesh.stl(filepath=r”C:\Users\Christian\Desktop”, use_selection=True, batch_mode=‘ON’))
Did you try to execute the code with quotes? It works for me:
exec("""bpy.ops.export_mesh.stl(filepath=r"C:\Users\Christian\Desktop\", use_selection=True, batch_mode='OBJECT')""")
But instead of ON I used OBJECT batch_mode in Blender 2.83. Not sure if you need to do this in previous versions.
❤️ 1 likes