Hi all,
I am preparing the 3rd release of BlenderFDS (http://www.blenderfds.org), a preprocessor for fire simulation in civil buildings.
I need an operator that sets a new custom default file from python.
Ideally something like this would rock:
bpy.ops.wm.save_homefile(filepath=bf_default_filepath)
But save_homefile does not support filepath parameter.
So I tried the following code. But it does not work: the context.window is destroyed by open_mainfile and save_homefile complains about the wrong context.
<code>
class WM_OT_bf_set_bf_homefile(bpy.types.Operator):
bl_label = “Open and Set Default Settings”
bl_idname = “wm.bf_set_bf_homefile”
bl_description = “Set default settings for BlenderFDS”