Paste-as-Nodes import + import robustness#217
Draft
kolibril13 wants to merge 7 commits into
Draft
Conversation
- Update core package version in pyproject.toml and common.py - Update addon manifest version to match - Ignore all .zip build artifacts Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary (with help of Claude Code + Opus 4.8)
new operator, panel button, and post_import logic that reproduces an
imported node tree into the active editor via own clipboard.
drop node outputs (11e92e0) — When unpacking loose into a tree,
stripped the Group Input/Output nodes (and their dangling links) so they
didn't litter the canvas.
still import node when context is unavailable (a4c7a9f) — Made
deferred socket enum-default assignment non-fatal: if a value (e.g. an
Index/Menu Switch enum) isn't valid in the current context, it now
records a warning and keeps importing instead of aborting the whole
import.
keep Group Input/Output when present, merge the imported group's
interface into the target tree and rebuild the group-I/O links, and
detect a full self-contained group to import it as a single group node
rather than pasting it loose (reversing the earlier "drop outputs"
approach for that case). Here's a screen recording of this:
Screen.Recording.2026-06-16.at.17.20.12.mp4
Net effect: a new clipboard "Paste as Nodes" import path that's smart
about whole-group vs. fragment content, plus a more forgiving importer
that warns rather than fails on unsettable enum defaults — plus a naming
revert at the end.