Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UX/ScriptNode] Duplicating/copypasting nodes severs the cable connection to parent/master container parameters #608

Open
aaronventure opened this issue Nov 20, 2024 · 2 comments

Comments

@aaronventure
Copy link

Understandable for container parameter cables being severed when copypasting if the severing happens on copy, as you don't know whether the nodes are going to get pasted within the same container. Although that could be decided on paste.

For duplication it should not sever any parameter cables, as these can only be from parent containers (duplicated node always ends up in the same container).

Master container parameter connections should never be severed.

@christoph-hart
Copy link
Collaborator

Yeah, the problem is that I'm using the same logic for duplicating nodes within a container (where it might be possible to keep parent parameter connections) and copy / pasting between networks (where it isn't possible) and I'd love to avoid branching that because it will definitely break on the next round of refactoring.

@aaronventure
Copy link
Author

Is it a function? Won't adding an argument isDuplication and setting this to true for the Ctrl+D call let you easily and cleanly branch this?

I understand that copy and paste might not get this as this would include adding logic on paste (if it doesn't exist). In that case it would probably be

  • check if parent with the same id exists
  • check if parent has the same parameter ids

This is enough safeguarding that it would have to be intentional to happen if copying to another network.

@aaronventure aaronventure changed the title [UX] Duplicating/copypasting nodes severs the cable connection to parent/master container parameters [UX/ScriptNode] Duplicating/copypasting nodes severs the cable connection to parent/master container parameters Nov 21, 2024
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

No branches or pull requests

2 participants