Remove obsolete implementation and simplify project structure

This commit is contained in:
2026-08-21 09:46:50 +08:00
parent b5a2f9690c
commit af5603045c
100 changed files with 365 additions and 365 deletions

View File

@@ -14,9 +14,9 @@ DEPTH_SCALE_ATTRIBUTE = "o_depth_scale"
OUTPUT_PATH = (
Path(__file__).parents[1]
/ "src"
/ "snapform"
/ "anyimage"
/ "assets"
/ "O_SnapForm.blend"
/ "O_AnyImage.blend"
)

View File

@@ -8,20 +8,20 @@ PROJECT_ROOT = Path(__file__).parents[1]
sys.path.insert(0, str(PROJECT_ROOT / "src"))
sys.path.insert(
0,
str(next((PROJECT_ROOT / "src" / "snapform" / "wheels").glob("blendjob-*.whl"))),
str(next((PROJECT_ROOT / "src" / "anyimage" / "wheels").glob("blendjob-*.whl"))),
)
from snapform.operators.balloon.depth import (
from anyimage.operators.balloon.depth import (
BALLOON_DEPTH_ATTRIBUTE,
add_balloon_shape_modifier,
balloon_shape_node_group,
)
from snapform.operators.balloon.operator import (
from anyimage.operators.balloon.operator import (
mark_balloon_material,
merge_balloon_normal_image,
reusable_balloon_material,
)
from snapform.operators.material import (
from anyimage.operators.material import (
BALLOON_MATERIAL_NODE_GROUP_NAME,
material_node_group,
set_modifier_input,

View File

@@ -8,10 +8,10 @@ PROJECT_ROOT = Path(__file__).parents[1]
sys.path.insert(0, str(PROJECT_ROOT / "src"))
sys.path.insert(
0,
str(next((PROJECT_ROOT / "src" / "snapform" / "wheels").glob("blendjob-*.whl"))),
str(next((PROJECT_ROOT / "src" / "anyimage" / "wheels").glob("blendjob-*.whl"))),
)
from snapform.operators.material import (
from anyimage.operators.material import (
DEPTH_PLANE_MATERIAL_NODE_GROUP_NAME,
SHADELESS_NODE_GROUP_NAME,
SURFACE_MATERIAL_NODE_GROUP_NAME,
@@ -23,8 +23,8 @@ from snapform.operators.material import (
modifier_input_identifier,
set_modifier_input,
)
from snapform.operators.depth_plane.build import add_depth_plane_processing
from snapform.operators.surface import load_geometry_node_group
from anyimage.operators.depth_plane.build import add_depth_plane_processing
from anyimage.operators.surface import load_geometry_node_group
def main():

View File

@@ -9,11 +9,11 @@ PROJECT_ROOT = Path(__file__).parents[1]
sys.path.insert(0, str(PROJECT_ROOT / "src"))
sys.path.insert(
0,
str(next((PROJECT_ROOT / "src" / "snapform" / "wheels").glob("blendjob-*.whl"))),
str(next((PROJECT_ROOT / "src" / "anyimage" / "wheels").glob("blendjob-*.whl"))),
)
from snapform.operators.material import get_modifier_input, set_modifier_input
from snapform.operators.surface import create_matching_camera, load_geometry_node_group
from anyimage.operators.material import get_modifier_input, set_modifier_input
from anyimage.operators.surface import create_matching_camera, load_geometry_node_group
def set_input(modifier, group, name, value):

View File

@@ -12,17 +12,17 @@ PROJECT_ROOT = Path(__file__).parents[1]
sys.path.insert(0, str(PROJECT_ROOT / "src"))
sys.path.insert(
0,
str(next((PROJECT_ROOT / "src" / "snapform" / "wheels").glob("blendjob-*.whl"))),
str(next((PROJECT_ROOT / "src" / "anyimage" / "wheels").glob("blendjob-*.whl"))),
)
from snapform.operators.image import create_color_image
from snapform.operators.material import (
from anyimage.operators.image import create_color_image
from anyimage.operators.material import (
MOGE_DEPTH_PLANE_NODE_GROUP_NAME,
MOGE_MATERIAL_NODE_GROUP_NAME,
get_modifier_input,
modifier_input_identifier,
)
from snapform.operators.depth_plane.build import build_moge2_depth_plane
from anyimage.operators.depth_plane.build import build_moge2_depth_plane
def validate_single_frame_source_types():

View File

@@ -10,16 +10,16 @@ PROJECT_ROOT = Path(__file__).parents[1]
sys.path.insert(0, str(PROJECT_ROOT / "src"))
sys.path.insert(
0,
str(next((PROJECT_ROOT / "src" / "snapform" / "wheels").glob("blendjob-*.whl"))),
str(next((PROJECT_ROOT / "src" / "anyimage" / "wheels").glob("blendjob-*.whl"))),
)
from snapform.operators.material import (
from anyimage.operators.material import (
MOGE_SURFACE_MATERIAL_NODE_GROUP_NAME,
material_color_space_name,
)
from snapform.operators.surface import MOGE_NODE_GROUP_NAME, build_image_mesh
from snapform.server.geometry import GeometryFrame, build_surface
from snapform.server.outputs.surface import write_surface_archive
from anyimage.operators.surface import MOGE_NODE_GROUP_NAME, build_image_mesh
from anyimage.server.geometry import GeometryFrame, build_surface
from anyimage.server.outputs.surface import write_surface_archive
def write_test_normal_texture(normal, output_path):