Post #3319: ac

📋 Metadata

🏷️ Tags

macro python-scripting intermediate solved

  • 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


🔗 View on Blender Artists