From 85b64737d5250e2a0d214a790d7599ff5bb6ab86 Mon Sep 17 00:00:00 2001 From: Terry Jia Date: Mon, 15 Jun 2026 08:27:50 -0400 Subject: [PATCH] feat: Load3DAdvanced stores uploads under input/3d --- comfy_extras/nodes_load_3d.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/comfy_extras/nodes_load_3d.py b/comfy_extras/nodes_load_3d.py index 1ae10df9c..6e3e88471 100644 --- a/comfy_extras/nodes_load_3d.py +++ b/comfy_extras/nodes_load_3d.py @@ -323,13 +323,16 @@ MESH_EXTENSIONS = {'.gltf', '.glb', '.obj', '.fbx', '.stl'} class Load3DAdvanced(IO.ComfyNode): @classmethod def define_schema(cls): - input_dir = folder_paths.get_input_directory() + input_dir = os.path.join(folder_paths.get_input_directory(), "3d") os.makedirs(input_dir, exist_ok=True) + input_path = Path(input_dir) + base_path = Path(folder_paths.get_input_directory()) + files = [ - f for f in os.listdir(input_dir) - if os.path.isfile(os.path.join(input_dir, f)) - and os.path.splitext(f)[1].lower() in MESH_EXTENSIONS + normalize_path(str(file_path.relative_to(base_path))) + for file_path in input_path.rglob("*") + if file_path.suffix.lower() in MESH_EXTENSIONS ] return IO.Schema( node_id="Load3DAdvanced",