I want to use Python to run an add-on
Something like:
import bpy
bpy.ops.export_mesh.paper_model()
But I need to change some settings before I run the add-on. I don't mind whether the settings are changed individually like this
import bpy
op = bpy.context.active_operator
op.page_size_preset = 'A3'
op.scale = 25.0
bpy.ops.export_mesh.paper_model()
or I call upon an existing preset like this:
import bpy
bpy.ops.script.execute_preset(filepath="/Users/paulmmxx/Library/Application Support/Blender/3.3/scripts/presets/operator/export_mesh.paper_model/psg3.py", menu_idname="WM_MT_operator_presets")
bpy.ops.export_mesh.paper_model()
Neither of these guesses worked because the settings were not changed.
Is there a way to do this??
The instructions say, “...avoid comments like thanks”, so I will just post this and then soon delete it.
– Paul St George May 27 '23 at 09:06