Blender’s Directory Layout#
This page documents the different directories used by Blender.
This can be helpful for troubleshooting, automation and customization.
User Directories#
User directories store preferences, startup file, installed extensions, presets and more. By default these use the standard configuration folders for each operating system.
Linux#
$HOME/.config/blender/4.2/
If the $XDG_CONFIG_HOME environment variable is set:
$XDG_CONFIG_HOME/blender/4.2/
macOS#
/Users/$USER/Library/Application Support/Blender/4.2/
Windows#
%USERPROFILE%\AppData\Roaming\Blender Foundation\Blender\4.2\
Portable Installation#
When running Blender from a portable drive, it’s possible to keep the configuration files on the same drive to take with you.
To enable this, create a folder named portable at the following locations:
Windows: Next to the Blender executable, in the unzipped folder
Linux: Next to the Blender executable, in the unzipped folder
macOS: Inside the application bundle at
Blender.app/Contents/Resources
This folder will then store preferences, startup file, installed extensions and presets.
Environment Variables#
The BLENDER_USER_RESOURCES environment variable
can be set to a custom directory to replace the default user directory.
System Directories#
System directories store files that come bundled with Blender and are required for it to function. This includes scripts, presets, essential assets and more.
Linux#
Archive downloaded from blender.org:
./4.2/
Linux distribution packages:
/usr/share/blender/4.2/
macOS#
./Blender.app/Contents/Resources/4.2/
Windows#
Zip file downloaded from blender.org:
./4.2/
Installer downloaded from blender.org:
%ProgramFiles%\Blender Foundation\Blender\4.2\
Microsoft Store installation:
%ProgramFiles%\WindowsApps\BlenderFoundation.Blender<HASH>\Blender\4.2\
Environment Variables#
BLENDER_SYSTEM_SCRIPTS and BLENDER_SYSTEM_EXTENSIONS
environment variables
can be used to bundle additional scripts and extensions,
that are not part of the regular Blender installation.
Other BLENDER_SYSTEM environment variables can override other system paths,
though are not commonly used in practice.
Zgradba poti#
./autosaveAutosave blend-file location. (Windows only, temp directory used for other systems.)
Located in user directories.
./configUser configuration and session info.
Located in user directories.
./config/startup.blendBlend file to load on startup.
./config/userpref.blendUser preferences.
./config/bookmarks.txtZaznamki datotečnega brskalnika.
./config/recent-files.txtNedaven seznam datotečnega menija.
./config/{APP_TEMPLATE_ID}/startup.blendStartup file for an application template.
./config/{APP_TEMPLATE_ID}/userpref.blendUser preferences file for an application template.
./datafilesData files loaded at runtime.
Located in both user and system directories. User data files either override or add to system data files.
./datafiles/colormanagementDefault OpenColorIO configuration.
./datafiles/fontsUser interface fonts.
./datafiles/studiolightsStudio light images for 3D viewport.
./extensionsExtension repositories.
Located in both user and system directories. Repositories are loaded from both directories.
./scriptsAdd-ons, presets, templates, user interface, startup scripts.
Located in both user and system directories. Scripts are loaded from both directories.
./scripts/addons/*.pyPython add-ons which may be enabled in the Preferences include import/export format support, render engine integration and many handy utilities.
./scripts/addons/modules/*.pyModules for add-ons to use (added to Python’s
sys.path)../scripts/addons_core/*.pyThe add-ons directory which is used for bundled add-ons.
./scripts/addons_core/modules/*.pyModules for
addons_coreto use (added to Python’ssys.pathwhen it found)../scripts/modules/*.pyPythonovi moduli, ki vsebujejo naše temeljne API-je in funkcije za uvažanje drugih skript (dodano k Pythonovi poti sys.path).
./scripts/startup/*.pySkripte, ki so samodejno uvožene ob zagonu programa.
./scripts/startup/bl_app_templates_user/{APP_TEMPLATE_ID}Application templates installed in user directories.
./scripts/startup/bl_app_templates_system/{APP_TEMPLATE_ID}pplication templates automatically loaded from system directories.
./scripts/presets/{preset}/*.pyPrednastavitve za shranjevanje uporabnikovih nastavitev za blago, izrisovalne formate, itd.
./scripts/templates_py/*.pySkripte s primeri, do katerih lahko dostopate prek .
./scripts/templates_osl/*.oslPrimeri OSL senčenj (ang. shaders), do katerih lahko dostopate prek .
./pythonPripeta Pythonova distribucija.
Located in system directories.
Local Cache Directory#
The cache directory is used to store persistent caches locally. Currently it is only used for the indexing of Asset Libraries. The operating system is not expected to clear this automatically.
The following path will be used:
- Linux:
$XDG_CACHE_HOME/blender/if$XDG_CACHE_HOMEis set, otherwise$HOME/.cache/blender/
- macOS:
/Library/Caches/Blender/
- Windows:
%USERPROFILE%\AppData\Local\Blender Foundation\Blender\Cache\
Začasni direktorij#
V začasni direktorij se shranjujejo različne datoteke med delovanjem programa (vključno z izrisovalnimi plastmi, predpomnilnikom fizikalnih simulacij, copy-paste medpomnilnikom in poročili o sesutju).
Začasni direktorij je izbran glede na sledečo prioriteto:
Uporabniške nastavitve (berite File Paths).
Environment variables (
TEMPon Windows,TMP&TMP_DIRon other platforms).Direktorij
/tmp/.