New add-on: Incremental Autosave #102
No reviewers
Labels
No Label
Kind
Breaking
Kind
Bug
Kind: Community
Kind
Documentation
Kind
Easy
Kind
Enhancement
Kind
Feature
Kind
Proposal
Kind
Security
Kind
Studio Request
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: studio/blender-studio-tools#102
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Mets:incremental_autosave"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I wrote this add-on 2 months ago on a Saturday because I got pissed off at Blender's autosave failing because I moved from my Linux PC at work over to my Windows PC at home, along with my user preferences, which contain the autosave filepath, which isn't cross-platform.
I think other guys in the Studio and around the world might also find it useful.
Below is a copy paste of the ReadMe:
This add-on was written to address some shortcomings of Blender's default Autosave functionality.
Blender's Shortcomings:
This Add-on's Features:
Feedback welcome!
Just left some overall, quick feedback. I see the issues you are addressing with this add-on, but I am not sure it be included in the Blender Studio add-ons list, as it enables users to alter some critical, core functionality. I would be happy to see a design discussion with core devs to make some of the features part of Blender itself.
@ -0,0 +2,4 @@
This add-on was written to address some shortcomings of Blender's default Autosave functionality.
### Blender's Shortcomings:
For better communication, consider focusing the text on the features you are adding to Blender's existing functionality. The point about autosaving on tmp is valid, but overall this list is a bit arbitrary.
@ -0,0 +19,4 @@
- Autosaves files that were never saved as "Unnamed.blend".
### Installation
Place the `incremental_autosave` folder into your Blender addons folder. If you need help finding this folder, you can ask ChatGPT for it.
I understand the humour, but please point people to the Blender manual, not a 3rd party service that requires registration.
@ -0,0 +1,209 @@
bl_info = {
Consider using a code formatter, for example black, to adhere to PEP8.
@ -0,0 +8,4 @@
"category": "System",
}
import bpy
Look up import sorting (alphabetical, system imports first, one line per import, etc).
@ -0,0 +47,4 @@
description='Path to auto save files into',
subtype='FILE_PATH',
default='')
autosave_path_mac : StringProperty(name='Autosave Path (Mac)',
macOS
@ -0,0 +53,4 @@
default='')
@property
def autosave_path_naive(self):
native not naive
@ -0,0 +92,4 @@
layout.prop(context.preferences.filepaths, 'use_auto_save_temporary_files', text="Enable Native Autosave")
if not context.preferences.filepaths.use_auto_save_temporary_files:
layout.label(text=" "*40+ "While the built-in autosave is redundant with the add-on, ")
Avoid ASCII art if possible.
@ -0,0 +145,4 @@
save_dir = bpy.path.abspath(addon_prefs.autosave_path)
if not os.path.isdir(save_dir):
os.mkdir(save_dir)
except:
Avoid bare exceptions https://www.flake8rules.com/rules/E722.html
Poked Sergey and we agree that the devs have better things to do.
Since the add-on isn't a good fit for this repo, I'll put it in a personal GitLab repo.
I'll implement your suggestions though, thanks for the review!
Pull request closed