Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preference manager #43

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft

Preference manager #43

wants to merge 27 commits into from

Conversation

Victor-IX
Copy link
Owner

@Victor-IX Victor-IX commented Dec 30, 2023

Preference Management

Swap Blender Preferences when launching Blender to use a specific Preference preset

Main use case

If you develop add-ons you can swap to your development environment, you can easily launch Blender with default factory settings to do testing...

Functionality List

  • Launch Blender with Dynamic Environment Variable to use a specific preference folder
  • Launch Blender with Default preference (%appdata%)
  • Option to set static Environment Variable to use a specific preference folder when launching Blender outside BL
  • Option to replace the Default preference folder with a custom preference preset (saved in the BL lib)
  • Manage the saved preference preset (ability to create new ones, rename them...) --> this will be done in the preferences tab

Folder structure

📦config
┗ 📂4.2
┃ ┣ 📂Main
┃ ┃ ┣ 📂config
┃ ┃ ┣ 📂extensions
┃ ┃ ┗ 📂scripts
┃ ┗ 📂New
┃ ┃ ┣ 📂config
┃ ┃ ┣ 📂extensions
┃ ┃ ┗ 📂scripts

UI Example

Untitled-1

2024-05-28.22-10-24.mp4

@zeptofine
Copy link
Collaborator

As I mentioned in the original issue, Blender can use three different paths to specify aspects of the user configuration:

  • CONFIG (userpref),
  • SCRIPTS (addons)
  • DATAFILES (icons, translations, ...) (I'm not sure if we need this one but it would be good to have, if all three are handled similarly)

Do we want all of these to be bundled into one single set of preferences, or should they be individually assigned?

@Victor-IX
Copy link
Owner Author

Yes, we would need at least CONFIG and SCRIPTS in the same bundle because there are links. User prefs hold the addon settings

@zeptofine
Copy link
Collaborator

ok, that makes sense

@zeptofine zeptofine added the enhancement New feature or request label Feb 1, 2024
@zeptofine
Copy link
Collaborator

What would be useful information to have in a ConfigInfo? Currently there is a directory, target_version, and name

@zeptofine zeptofine linked an issue Apr 1, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blender Configuration Manager
2 participants