Files
Text-Texture-Generator-for-…/build/templates/constants.py.template
2025-09-11 14:07:55 +03:00

32 lines
1008 B
Plaintext

"""
Constants and metadata for the Text Texture Generator addon.
"""
bl_info = {
"name": "{{PROJECT_NAME}}",
"author": "{{PROJECT_AUTHOR}}",
"version": ({{VERSION_MAJOR}}, {{VERSION_MINOR}}, {{VERSION_PATCH}}),
"blender": ({{BLENDER_VERSION_MAJOR}}, {{BLENDER_VERSION_MINOR}}, {{BLENDER_VERSION_PATCH}}),
"location": "{{PROJECT_LOCATION}}",
"description": "{{PROJECT_DESCRIPTION}}",
"category": "{{PROJECT_CATEGORY}}",
}
# Version information
VERSION_TYPE = "{{VERSION_TYPE}}" # "free" or "full"
# Version-specific limits (applied at build time through file exclusions)
def get_version_limits():
"""Get version-specific limits."""
return {
"max_texture_size": {{MAX_TEXTURE_SIZE}},
"max_concurrent_operations": {{MAX_CONCURRENT_OPERATIONS}}
}
def is_free_version():
"""Check if this is the free version."""
return VERSION_TYPE == "free"
def is_full_version():
"""Check if this is the full version."""
return VERSION_TYPE == "full"