Built .zip for release v.1.0.0
Remove old blender manifest file Update README for v1.0.0 Update script name for .zip to release.sh Remove operations that was specific for user_default extensions Update README with Support info and .blend path notice Update zip for v1.0.0 Fix select template popup Override first release 1.0.0
This commit is contained in:
parent
15f92f032a
commit
1cd7d8d331
16
README.md
16
README.md
@ -1,7 +1,5 @@
|
||||
# Custom Templates - Add-On
|
||||
|
||||
##### v0.9.22 (12/08/2024)
|
||||
|
||||
### Have you ever wanted to customize new projects?
|
||||
|
||||
Custom Templates Add-On allows you to use your own .blend files as template options for new projects.
|
||||
@ -13,6 +11,12 @@ Custom Templates Add-On allows you to use your own .blend files as template opti
|
||||
- Addon files: /addon/*
|
||||
- Release .zip files: /releases/<major_version_folder>/*
|
||||
|
||||
### Releases
|
||||
|
||||
##### v1.x
|
||||
|
||||
- Version 1.0.0: [custom_templates-1.0.0.zip](./releases//1.x.x/custom_templates-1.0.0.zip)
|
||||
|
||||
### Preferences
|
||||
|
||||
In the add-on preferences, you can manage the list of your custom template files.
|
||||
@ -23,6 +27,9 @@ Each template has it's Name, and Path to the .blend file.
|
||||
|
||||

|
||||
|
||||
*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
|
||||
|
||||
You can always open the add-on preferences using the button `File > Defaults > Manage templates`.
|
||||
@ -32,6 +39,11 @@ Instead of using preferences, you can select a new template file using `File > D
|
||||
|
||||

|
||||
|
||||
### Support
|
||||
|
||||
As of today, the add-on has been only tested on Blender 4.2.0.
|
||||
*It may or may not work on previous version.*
|
||||
|
||||
### Copyright
|
||||
|
||||
This add-on is developed under GPL-3.0 license by Francesco Bellini from 2024.
|
||||
|
@ -59,8 +59,6 @@ class OT_SelectTemplatePopup(Operator):
|
||||
new_project = prefs.projects.add()
|
||||
new_project.name = self.project_name
|
||||
new_project.path = self.project_path
|
||||
self.project_name.pop()
|
||||
self.project_path.pop()
|
||||
self.report(
|
||||
{'INFO'}, f"Template '{self.project_name}' selected and added successfully!")
|
||||
|
||||
@ -176,7 +174,6 @@ class OT_OpenAddonPreferences(bpy.types.Operator):
|
||||
bpy.ops.screen.userpref_show('INVOKE_DEFAULT')
|
||||
context.preferences.active_section = 'ADDONS'
|
||||
context.window_manager.addon_search = "Custom Templates"
|
||||
bpy.ops.preferences.addon_expand(module="bl_ext.user_default.custom_templates")
|
||||
return {'FINISHED'}
|
||||
|
||||
# Add-On Preferences
|
||||
@ -230,16 +227,20 @@ def draw_new_menu(self, context):
|
||||
"wm.read_homefile", text=project.name).filepath = project.path
|
||||
|
||||
|
||||
# File > Defaults > Add-On Buttons
|
||||
def draw_add_template(self, context):
|
||||
layout = self.layout
|
||||
|
||||
draw_addon_separator(layout)
|
||||
|
||||
# Manage Template
|
||||
layout.operator("custom_templates.open_preferences",
|
||||
text="Manage templates")
|
||||
# Select new custom template
|
||||
layout.operator("wm.select_template_popup",
|
||||
text="Select new custom template")
|
||||
if bpy.data.filepath != "":
|
||||
# Use current as new template (only with an active saved .blend file opened)
|
||||
layout.operator("wm.add_template_popup",
|
||||
text="Use current as new template")
|
||||
|
||||
|
@ -1,27 +0,0 @@
|
||||
schema_version = "1.0.0"
|
||||
id = "custom_templates"
|
||||
version = "0.9.22"
|
||||
name = "Custom Templates"
|
||||
tagline = "Use your own .blend files as template options for new projects"
|
||||
maintainer = "Francesco Bellini <doc.open.dev@gmail.com>"
|
||||
type = "add-on"
|
||||
|
||||
# Optional link to documentation, support, source files, etc
|
||||
# website = "https://extensions.blender.org/add-ons/my-example-package/"
|
||||
|
||||
# Optional list defined by Blender and server, see:
|
||||
# https://docs.blender.org/manual/en/dev/advanced/extensions/tags.html
|
||||
tags = ["System"]
|
||||
|
||||
blender_version_min = "4.2.0"
|
||||
|
||||
# License conforming to https://spdx.org/licenses/ (use "SPDX: prefix)
|
||||
# https://docs.blender.org/manual/en/dev/advanced/extensions/licenses.html
|
||||
license = [
|
||||
"SPDX:GPL-3.0-or-later",
|
||||
]
|
||||
# Optional: required by some licenses.
|
||||
copyright = [
|
||||
"2024 Francesco Bellini",
|
||||
]
|
||||
|
@ -1,2 +0,0 @@
|
||||
|
||||
zip -9 -r ./releases/0.9.x/custom_templates-0.9.22.zip ./addon/
|
2
release.sh
Normal file
2
release.sh
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
zip -9 -r ./releases/1.x.x/custom_templates-1.0.0.zip ./addon/
|
BIN
releases/1.x.x/custom_templates-1.0.0.zip
Normal file
BIN
releases/1.x.x/custom_templates-1.0.0.zip
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user