Skip to content

CORE-329 feat: add Save 3D (Advanced) node family#14701

Open
jtydhr88 wants to merge 1 commit into
masterfrom
CORE-329-save-3d-advanced
Open

CORE-329 feat: add Save 3D (Advanced) node family#14701
jtydhr88 wants to merge 1 commit into
masterfrom
CORE-329-save-3d-advanced

Conversation

@jtydhr88

@jtydhr88 jtydhr88 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Add Save3DAdvanced, SaveGaussianSplat, and SavePointCloud as the save-side counterparts to the advanced preview nodes (Preview 3D (Advanced), Preview Splat, Preview Point Cloud).

Each mirrors its preview node's input/output shape and display name, and saves the File3D to the output directory under filename_prefix (preserving the original format), then emits PreviewUI3DAdvanced for the viewport.

FE change - Comfy-Org/ComfyUI_frontend#13330

Screenshot
Save 3D (Advanced)
image

Save Splat
image

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 18262b8a-936a-4338-a0c2-b2a223babdfa

📥 Commits

Reviewing files that changed from the base of the PR and between eea3502 and 78d9bfd.

📒 Files selected for processing (1)
  • comfy_extras/nodes_save_3d.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • comfy_extras/nodes_save_3d.py

📝 Walkthrough

Walkthrough

This change adds advanced 3D file save support in comfy_extras/nodes_save_3d.py. It introduces helpers to save Types.File3D data and build a preview node output with camera and model metadata. It also adds three new output nodes—Save3DAdvanced, SaveGaussianSplat, and SavePointCloud—with specialized input type restrictions, and registers them in the extension’s node list.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: adding the Save 3D (Advanced) node family.
Description check ✅ Passed The description accurately describes the new save-side 3D nodes and their behavior.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@comfy_extras/nodes_save_3d.py`:
- Around line 409-420: The 3D save path helper is not forwarding the node’s
actual dimensions, so `%width%` and `%height%` in filename_prefix resolve to 0.
Update `_save_file3d_to_output` and its caller from `execute_save_3d_advanced`
to pass the real width/height values into `folder_paths.get_save_image_path`,
matching the pattern used by other Save* nodes so templated filenames use the
node inputs instead of defaults.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: d9338cc5-1901-4422-b813-4dcd2a719ee1

📥 Commits

Reviewing files that changed from the base of the PR and between 50e5270 and eea3502.

📒 Files selected for processing (1)
  • comfy_extras/nodes_save_3d.py

Comment thread comfy_extras/nodes_save_3d.py
Comment thread comfy_extras/nodes_save_3d.py Outdated
filename_prefix, folder_paths.get_output_directory()
)
ext = model_3d.format or "glb"
saved_filename = f"{filename}_{counter:05}_.{ext}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are removing the trailing _ in Save (Advanced) nodes:

Suggested change
saved_filename = f"{filename}_{counter:05}_.{ext}"
saved_filename = f"{filename}_{counter:05}.{ext}"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread comfy_extras/nodes_save_3d.py Outdated
IO.Load3DCamera.Input("camera_info", optional=True, advanced=True),
IO.Int.Input("width", default=1024, min=1, max=4096, step=1),
IO.Int.Input("height", default=1024, min=1, max=4096, step=1),
IO.String.Input("filename_prefix", default="3d/ComfyUI"),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would propose to move this before the 3D viewport for a more consistent experience with other save nodes (filename_prefix is always before the preview).

Same feedback for Save Splat.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed
image

@jtydhr88 jtydhr88 force-pushed the CORE-329-save-3d-advanced branch from eea3502 to 78d9bfd Compare July 1, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants