- Implemented a preview tool for rectifying images with interactive aspect controls in `preview.py`. - Added tests for depth metadata loading to ensure consistent schema usage in `test_depth_metadata.py`. - Developed comprehensive tests for cutout calibration processes in `test_cutout_calibration.py`, including stability checks and depth calibration. - Created tests for frame compositing operations in `test_frame_compositing.py`, ensuring correct handling of depth and transparency. - Introduced material slot inheritance functionality in `material_slots.py` to manage geometry material assignments. - Built shared shader nodes for material processing in `shader.py`, including roughness and bump mapping setups.
1.2 KiB
1.2 KiB
Operator 实现索引
源码(相对 src/anyimage/) |
功能 |
|---|---|
operators/ai_setup.py |
AI 环境管理 |
operators/clipboard_image/ |
剪贴板图片 |
operators/convert_to_plane/ |
Plane 与 Depth Plane |
operators/convert_to_panorama/ |
Panorama |
operators/cutout_tool/ |
Cutout |
operators/frame_tool/operators.py |
Frame 多图合成 |
operators/mask_tool.py |
Mask Alpha 编辑 |
operators/rectify_tool/operators.py |
Rectify 透视校正 |
operators/remove_background.py |
Remove Background |
operators/upscale.py |
Upscale |
单文件功能按业务命名;复杂功能包在 operators.py 定义 Operator、对应 WorkSpaceTool 和入口协调逻辑,其余模块承载具体实现。包的 __init__.py 汇总导出与 CLASSES 注册清单,类型在 operators/__init__.py 和扩展 __init__.py 汇总注册。AI Operator 使用普通字典提交任务,并在主线程响应中读取文件和修改 Blender 数据。