New add-on: Incremental Autosave #102
@ -31,7 +31,7 @@ class IncrementalAutoSavePreferences(bpy.types.AddonPreferences):
|
||||
description='Save the current file before opening another file',
|
||||
default=True)
|
||||
save_interval : IntProperty(name='Save Interval (Minutes)',
|
||||
description="Number of minutes between each save. (As long as the add-on is enabled, it always auto-saves, since that's all the add-on does)",
|
||||
description="Number of minutes between each save while the add-on is enabled",
|
||||
default=5, min=1, max=120, soft_max=30)
|
||||
|
||||
use_native_autosave_path: BoolProperty(
|
||||
@ -78,8 +78,8 @@ class IncrementalAutoSavePreferences(bpy.types.AddonPreferences):
|
||||
sys_temp = tempfile.gettempdir()
|
||||
return sys_temp
|
||||
|
||||
max_save_files : bpy.props.IntProperty(name='Max Save Files',
|
||||
description='Maximum number of copies to save, 0 means unlimited',
|
||||
max_save_files : bpy.props.IntProperty(name='Max Backups Per File',
|
||||
description='Maximum number of backups to save for each file, 0 means unlimited. Otherwise, the oldest file will be deleted after reaching the limit',
|
||||
default=10, min=0, max=100)
|
||||
compress_files : bpy.props.BoolProperty(name='Compress Files',
|
||||
description='Save backups with compression enabled',
|
||||
@ -128,8 +128,9 @@ class IncrementalAutoSavePreferences(bpy.types.AddonPreferences):
|
||||
|
||||
layout.prop(self, 'save_interval')
|
||||
layout.prop(self, 'max_save_files')
|
||||
layout.prop(self, 'compress_files')
|
||||
layout.prop(self, 'save_before_close')
|
||||
layout.separator()
|
||||
layout.prop(self, 'compress_files')
|
||||
|
||||
def save_file():
|
||||
addon_prefs = get_addon_prefs()
|
||||
|
Loading…
Reference in New Issue
Block a user