feat: enhance generation engine and preset management system

This commit is contained in:
2026-04-10 12:46:02 +02:00
parent f8dc03caf9
commit 448217bc2f
21 changed files with 627 additions and 116 deletions

View File

@@ -23,7 +23,8 @@ from .system import (
install_cairosvg_from_bundle,
get_system_fonts,
get_font_enum_items,
find_default_truetype_font
find_default_truetype_font,
log_addon_configuration
)
__all__ = [
@@ -45,5 +46,6 @@ __all__ = [
'has_shadow_glow_effects',
'has_shader_generation',
'is_free_version',
'is_full_version'
'is_full_version',
'log_addon_configuration'
]

View File

@@ -8,7 +8,7 @@ VERSION_TYPE = "full" # "free" or "full"
bl_info = {
"name": "Text Texture Generator" + (" Free" if VERSION_TYPE == "free" else " Full"),
"author": "Marc Mintel <marc@mintel.me>",
"version": (1, 1, 0),
"version": (1, 2, 4),
"blender": (4, 0, 0),
"location": "3D View > Sidebar (N) > Tool Tab | Shader Editor > Sidebar > Tool Tab",
"description": "Generate image textures from text with accurate dimensions and instant live preview" + (" - Free Version (Limited Features)" if VERSION_TYPE == "free" else " - Full Version"),

View File

@@ -265,3 +265,39 @@ def find_default_truetype_font():
_DEFAULT_FONT_CACHE = None
return _DEFAULT_FONT_CACHE
def log_addon_configuration():
"""Log the entire addon configuration and system info to the console."""
from .constants import bl_info, VERSION_TYPE, ENABLED_FEATURES, get_version_limits
import platform
import sys
# Header
print("\n" + "="*60)
print(f"TEXT TEXTURE GENERATOR - INITIALIZATION")
print("="*60)
# Basic Info
version_str = ".".join(map(str, bl_info['version']))
print(f"Version: {version_str} ({VERSION_TYPE.upper()})")
print(f"Platform: {platform.system()} ({platform.release()})")
print(f"Python: {sys.version.split(' ')[0]}")
print(f"OS Node: {platform.node()}")
# Features
print("-" * 60)
print("ENABLED FEATURES:")
# Wrap features for better readability
features = sorted(ENABLED_FEATURES)
for i in range(0, len(features), 3):
print(f" - {', '.join(features[i:i+3])}")
# Limits
print("-" * 60)
limits = get_version_limits()
print("ADDON LIMITS:")
for key, value in limits.items():
name = key.replace('_', ' ').title()
print(f" - {name}: {value}")
print("="*60 + "\n")