Copy nodes from source - #477
Open
AnniekStok wants to merge 2 commits into
Open
Conversation
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.
Support copying of points or labels from a source layer as new nodes.
The execution of the copy depends on the click location (background, same track, different track), whether preserve labels is active, and whether the option 'copy as new track' is active (in case a node with current track ID already exists a current time point).
For now this behavior is linked to right-mouse clicks, but that is up for discussion. I also added a keybind for starting a new track ('), and disabled centering to the selected node when undoing/redoing (also up for discussion, I just found it rather annoying that it would jump to a different z position when I wanted to undo something).
Needs a small update on Funtracks to allow
_top_level=True/FalseonUserUpdateSegmentationandUserDeleteNodes, because replacing a label with a copied smaller other label consists of multiple actions (erase and paint), that we would want to undo as a single Action in one go (funkelab/funtracks#271)