1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
|
.. _bpy.types.PreferencesFilePaths:
.. _prefs-file-paths:
**********
File Paths
**********
The *File* section in *Preferences* allows you to configure auto-save preferences
and set default file paths for blend-files, rendered images, and more.
Locations for various external files can be set for the following options:
.. figure:: /images/editors_preferences_section_file-paths.png
Preferences File Paths section.
.. hint::
The default path ``//`` refers to the folder of the currently open blend-file
(see :ref:`files-blend-relative_paths` for details).
Data
====
.. _bpy.types.PreferencesFilePaths.font_directory:
Fonts
Default location to browse for :doc:`text object </modeling/texts/index>` font files.
.. _bpy.types.PreferencesFilePaths.texture_directory:
Textures
Default location to browse for image textures.
.. _bpy.types.PreferencesFilePaths.sound_directory:
Sounds
Default location to browse for sound files.
.. _bpy.types.PreferencesFilePaths.temporary_directory:
Temporary Files
The directory for storing temporary save files. The path must reference an existing directory
or it will be ignored and the systems temporary directory will be used instead.
When left blank, the systems temporary directory will be used (see :ref:`temp-dir` for details).
Render
------
.. _bpy.types.PreferencesFilePaths.render_output_directory:
Render Output
Where rendered images/videos are saved.
.. _bpy.types.PreferencesFilePaths.render_cache_directory:
Render Cache
The location where cached render images are stored.
.. _bpy.types.UserAssetLibrary:
Asset Libraries
===============
Name and on-drive directory paths of asset libraries.
To make Blender aware of an asset library, add it to this list.
The name is for your reference only, and will appear in asset library selectors.
The path should point to the location of the asset library.
.. figure:: /images/asset_browser-asset_library_preferences.png
Name and Location of asset libraries in the Preferences.
To create a new asset library, just create an empty directory and add it to the :ref:`ui-list-view`.
Any asset from any blend-file contained in that directory
(or subdirectories thereof) will appear in the :doc:`/editors/asset_browser`.
.. _bpy.types.UserAssetLibrary.import_method:
Import Method
Determines how data is managed when an asset is imported,
unless overridden by the :ref:`Asset Browser <bpy.types.FileAssetSelectParams.import_method>`.
:Link:
*Same as* :menuselection:`File --> Link...`
The asset will be linked to the current blend-file, and thus be read-only.
Later changes to the asset file will be reflected in all files that link it in.
:Append:
*Same as* :menuselection:`File --> Append...`
All of the asset and all its dependencies will be appended to the current file.
Dragging a material into the scene three times will result in three independent copies.
Dragging an object into the scene three times will also result in three independent copies.
"Dependencies" in this case means everything the asset refers to.
For an object, this can be its mesh and materials, but also other objects
used by modifiers, constraints, or drivers.
Since the file now has its own copy of the asset, later changes to
the asset file will not be reflected in the file it's appended to.
:Append (Reuse Data):
*Specific to the Asset Browser*.
The first time an asset is used, it will be appended, including its dependencies,
just like described previously. However, Blender will keep track of where it originated,
and the next time the asset is used, as much data as possible will be reused.
Dragging a material into the scene three times will only load it once,
and just assign the same material three times.
Dragging an object into the scene three times will create three copies of the object,
but all copies will share their mesh data, materials, etc.
Since the file now has its own copy of the asset, later changes to
the asset file will not be reflected in the file it's appended to.
.. _bpy.types.UserAssetLibrary.use_relative_path:
Relative Path
Use relative path when linking assets from this asset library.
.. _bpy.ops.preferences.script_directory_add:
.. _bpy.ops.preferences.script_directory_remove:
.. _bpy.types.ScriptDirectory:
Script Directories
==================
Additional locations to search for Python scripts.
Each path can be given a *Name* to signify to purpose of that script directory.
By default, Blender looks in several directories (platform dependent) for scripts.
By adding a user script path in the preferences an additional directory is used.
This can be used to store your own scripts and add-ons independently of the current Blender version.
You will need to create specific subfolders in this path which match the structure of the ``scripts``
folder found in Blender's installation directory.
The following subdirectories will be used when present:
``startup/``
Modules in this folder will be imported on startup.
``addons/``
Legacy add-ons located here will be listed in the add-ons preferences.
``modules/``
Modules in this folder can be imported by other scripts.
``presets/``
Presets in this folder will be added to existing presets.
.. hint::
For add-ons it is now recommended to use a local extension repository if you wish
to define additional locations to install and manage them.
To make use of these you will need to define them as :ref:`extensions <extensions-index>`.
.. note::
You have to restart Blender for all changes to the users scripts to take effect.
Applications
============
.. _bpy.types.PreferencesFilePaths.image_editor:
Image Editor
The path to an external program to use for image editing.
.. _bpy.types.PreferencesFilePaths.animation_player_preset:
Animation Player
The program used for playing back rendered animations via
:ref:`View Animation <topbar-render-view_animation>`.
By default this is set to *Internal* which uses Blender's built-in
:ref:`animation player <bpy.ops.render.play_rendered_anim>`.
This has the advantage that all image formats supported by Blender can be played back
and no 3rd party application needs to be installed.
.. _prefs-file_paths-text_editor:
Text Editor
-----------
.. _bpy.types.PreferencesFilePaths.text_editor:
Program
Command to launch the text editor when using :ref:`Edit Externally <bpy.ops.text.jump_to_file_at_point>`,
either a full path or a command in ``$PATH``. Use the internal editor when left blank.
.. _bpy.types.PreferencesFilePaths.text_editor_args:
Arguments
Defines the specific format of the arguments with which the text editor opens files.
The supported expansions are as follows:
- ``$filepath``: The absolute path of the file.
- ``$line``: The line to open at (Optional).
- ``$column``: The column to open from the beginning of the line (Optional).
- ``$line0`` & ``$column0`` similar to the above but they start at zero.
Example: ``-f $filepath -l $line -c $column``
Development
===========
Only visible when :ref:`Developer Extras <bpy.types.PreferencesView.show_developer_ui>` are enabled.
.. _bpy.types.PreferencesFilePaths.i18n_branches_directory:
I18n Branches
The path to the ``/branches`` directory of your local SVN translation copy, to allow translating from the UI.
Known Limitations
=================
Permissions on Windows
----------------------
Be sure that you have the right privileges for running the executable accessing the path defined.
On Windows for instance, if the option "Run this program as an administrator" is enabled for the executable,
it will lead to a failure to open the editor due to a limitation within the OS User Account Control.
Running a program with elevated privileges is potentially dangerous!
|