I wrote my save function so it automatically changes its name based on the date and I want it to be added to the Recent Files menu. When I save my file via python like this:
import bpy import getpass filepath = "C:\\Users\\" + getpass.getuser() + "\\Desktop\\" name = 'test' bpy.ops.wm.save_as_mainfile(filepath = filepath + name + '.blend')
The file will not be added to the Recent Files menu, but when I save it manually via the File > Save command it will be added the Recent Files menu.
It does not change even if I immediately open the newly saved scene via:
bpy.ops.wm.open_mainfile(filepath = filepath + name + '.blend')
Is there a way to add my scene, that was saved by script, to the Recent Files menu?