2026-02-16

This commit is contained in:
2026-03-17 15:25:32 -06:00
parent d5dd373de0
commit 60100fbab2
560 changed files with 33397 additions and 20776 deletions
@@ -1,6 +1,7 @@
"""UI module for AMZN Character Tools."""
from .operators import OPERATOR_CLASSES
from .panels import PANEL_CLASSES
from .preferences import AMZN_AddonPreferences
__all__ = ["OPERATOR_CLASSES", "PANEL_CLASSES"]
__all__ = ["OPERATOR_CLASSES", "PANEL_CLASSES", "AMZN_AddonPreferences"]
@@ -50,15 +50,6 @@ OP_SPECS = [
"panel": "general",
"large": True,
},
{
"name": "WhiteWorld",
"id": "white_world",
"desc": "Removes Dual Node Background world and replaces with pure white world",
"script": "white_world.py",
"button": "White World",
"icon": "WORLD",
"panel": "scene",
},
{
"name": "ApplySubdivWgt",
"id": "apply_subdiv_wgt",
@@ -0,0 +1,63 @@
"""Preferences for AMZN Character Tools."""
import bpy
from bpy.types import AddonPreferences
from bpy.props import StringProperty
class AMZN_AddonPreferences(AddonPreferences):
"""Addon preferences for AMZN Character Tools."""
# bl_idname will be set in __init__.py during registration
# This ensures it uses the correct root package name
bl_idname = "" # Set dynamically
amzn_bsdf_materials_path: StringProperty(
name="BSDF Materials Library",
description="Path to MATERIALS_BSDF_pallette_v1.0.blend",
subtype='FILE_PATH',
default=r"A:\1 Amazon_Active_Projects\1 BlenderAssets\Amazon\MATERIALS_BSDF_pallette_v1.0.blend",
)
amzn_device_path: StringProperty(
name="Device Library",
description="Path to device_v2.blend",
subtype='FILE_PATH',
default=r"A:\1 Amazon_Active_Projects\1 BlenderAssets\Amazon\device_v2.blend",
)
amzn_scanner_assets_path: StringProperty(
name="Scanner Assets Library",
description="Path to amazon-3Dworld-assets_v4.0.blend",
subtype='FILE_PATH',
default=r"A:\1 Amazon_Active_Projects\1 BlenderAssets\Amazon\amazon-3Dworld-assets_v4.0.blend",
)
amzn_hardhat_asset_path: StringProperty(
name="Hard Hat Asset Library",
description="Path to amazon-asset_Hard-Hat_v1.1.blend",
subtype='FILE_PATH',
default=r"A:\1 Amazon_Active_Projects\1 BlenderAssets\Amazon\amazon-asset_Hard-Hat_v1.1.blend",
)
def draw(self, context):
"""Draw the preferences UI."""
layout = self.layout
layout.label(text="Blend File Paths:")
layout.separator()
# BSDF Materials path
row = layout.row()
row.prop(self, "amzn_bsdf_materials_path")
# Device path
row = layout.row()
row.prop(self, "amzn_device_path")
# Scanner assets path
row = layout.row()
row.prop(self, "amzn_scanner_assets_path")
# Hard hat asset path
row = layout.row()
row.prop(self, "amzn_hardhat_asset_path")