Version 1.6.0
Check the v1.6.0 release for the up-to-date details
This page describe the first plan, which has been updated a little
The #1 issue has been opened and Custom Templates want to respond.
External resources in templates will not work if the path for this resources is relative.
This is because relative paths, expect the current project to be saved, and are relative to his path. Templates initially don't have any path.
Every user can update his templates .blend files manually, in order to make all paths absolute (E.g. using
File > External Data > Make Paths Absolute
on them).
This alone could be fine, but Custom Templates aims to simplify users life, where possibile. So, let's automate this process.
New Feature
-
Batch processing .blend templates to ensure that all ext. paths are absolute (in background)
First of all, this is totally optional.
Users can do this by flagging a checkbox while adding templates, or on-demand, by executing it on all tempates from preferences,
using the button in theExternal Resources Batch
section.Now, to execute
Make Paths Absolute
operator, the project need to be opened, and then saved.We don't want to mess with the Blender instance to do so. User shouldn't see anything and his current project shouldn't be closed.
Instead, Custom Templates will run another instance of Blender in background.
This process will:
- Open another background instance of Blender passing the .blend file
- Execute a Custom Templates operator, which will:
- Check if the paths for external resources has any relative paths (to avoid processing files which don't need it)
- If it does, Make Paths Absolute is executed and the file is saved with the changes
That's right. It will not save your project if they don't have external resources or already has all paths absolute.
Once the process is completed, the Info
area of blender will log all the files that has been updated, also showing how many relative paths were found in each project.
After completion, templates are ready to be opened, and all external resources should work as expected.