Update README for import/export and refactor

This commit is contained in:
Francesco Bellini 2024-08-17 18:29:18 +02:00
parent 2531be905c
commit 12d173b2ce
2 changed files with 15 additions and 6 deletions

View File

@ -25,6 +25,7 @@ Create your own version of General, 2D Animation or any other template you might
In the add-on preferences, you can manage the list of your custom template files.
You can add, remove and reorder templates as you wish.
It's possible to Import and Export from and to JSON file (see [Import/Export just below](#importexport)).
*Changes will be immidiatly visible in the `File > New` menu.*
Each template has it's Name (used as menu button label), and Path to the .blend file.
@ -35,19 +36,27 @@ You can have as many template as you like.
*Note that, as of now, using wrong file paths will NOT show any warning and you will get an error while opening the template. Be sure to use only valid .blend files as path.*
### How to use
### Features
##### Open Template
Of course, the main feature of the add-on is to show your list of templates in the `File > New` menu.
They will open in an unsaved windows, just like the Blender's default ones.
##### Manage templates
You can open the add-on preferences using the button `File > Defaults > Manage templates` or by manually open Blender's Preferences, going in the add-ons tab, and looking for the Custom Templates add-on preferences.
##### Import/Export
Both from the add-on preferences menu and the `File > Default > Import/Export` menu, is possibile to export the current custom templates list to a JSON file, or importing an existing JSON file and using it to override the current custom templates list.
> *Note that this will only backup names and paths. This is not intended as a backup for your .blend files.*
##### Select new custom template
Instead of using preferences, you can select a new template file using `File > Defaults > Select new custom template`.
*This functions will open a popup where you can also set the Name for the new template*
![File > Defaults menu with the add-on custom buttons](./images/File__Defaults.png)
*This functions will open a popup where you will select the file path and specify the name for the new template.*
##### Use current as new template
If you have a .blend file already open, you can use `File > Defaults > Use current as new template` (which is visible only when a saved .blend file is currently loaded).
*This functions will open a popup where you will specify the name for the new template. The path will be the one of the current .blend file.*
### Support

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 68 KiB