-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Scene Tree Dock: added ability to cut/paste nodes. #13309
Conversation
It fails to build on X11 tools=yes: https://travis-ci.org/godotengine/godot/jobs/307510048
|
This is cool, probably too late for 3.0 (we are releasing beta imminently and feature freeze has kicked in). Finally, the RMB menu likely is too crowded, so maybe it would need some reordering or using submenus for the least used options, too. |
@akien-mga To be honest have no idea why it fails. May be some nix-user can advice why it fails, because compiles fine on Visual Studio and I don't use any special syntax there...
Yes, it is.
I decided to start from just cut/paste (after all, at least having two of them is better than having nothing at all? :). P.S. I think its pretty safe to merge it into 3.0. Just try it, ensure yourself that is works pretty seamless and smooth. :) And just in case if you will do, don't forget to take also #13308, as it makes possible UX like "mouse clicked on empty space in scene tree dock to reset selection from current [non-root, for example] element, CTRL+V to paste element into root without manually selecting it".
I think the same. But do nothing currently related to interface/UX changes, due to feature freeze state. Once 3.1 development will be opened, I will start send more bold PRs :) |
Maybe this doesn't need to be exposed in the RMB menu yet. It really is crowded. I'd also like Copy, though Ctrl+C is bound to "Copy node path" already. |
|
Being able to copy nodes and trees between scenes is sorely lacking in Godot. If you can add this, it would be a massive boost to productivity :) |
Can copy-paste as text too? could be interesting to share partial scene branches (something I have asked for visual script too), useful for tutorials, troubleshooting, etc., instead of sharing full projects or scene files. |
There is demonstration for cut-paste between scenes: https://i.imgur.com/qZn4TZf.gifv |
@eon-s can you clarify your (feature) request? :) There is already "Copy Node Path", no? Or it's not work for you the way you want? |
Like: |
@eon-s Oh, now I see.
I can implement both as separate PR (for v3.1, too late for v3.0), but there is small problem as I just found - "Copy Node Path" copy node current name, not their type, so there is need to think about of a some kind of text "format" which can be reinterpreted correctly by Godot (for example CTRL+C on nodes branch, and CTRL+V it to text document like: "CurrentNodeName1 (NodeType) > CurrentNodeName2 (NodeType)", instead of current "CurrentNodeName1") and work fine for both ways (Nodes Branch -> Text Document and Text Document -> Nodes Branch), but this "format" assumes only nodes name/type, not nodes properties though having of which I assume can be kinda important for tutorials purpose. But I can be wrong. |
@Krakean yes, it will need to copy everything, like a part of a scene file to keep relationships and values, I can open an issue with some example of this and ping you if interested. |
3596fee
to
d803b83
Compare
@eon-s Yes, go ahead please. All details and possible test-cases. Will examine it after 3.0 release. |
Added icons Small adjustments Possible fix X11 compilation issue.
d803b83
to
a2d08f8
Compare
@Krakean awesome...this will be so useful! The screen capture goes so quickly, but does the menu option say "copy" or "cut" when you copy these? There should be an option for both. Also, does this allow copying/cutting a complex nested tree and maintaining this relationship when pasting? Anyway...great work so far :) |
Its only cut/paste. "Copy" a bit more complicated, so I decided to leave it for 3.1
Allow. :) |
@Krakean...thanks, I look forward to it. In all honesty, I think it would be rare for me to use a cut function, as I mainly want to copy arrangements of meshes,lights etc between scenes without having to instance them. Also copying particle systems between scenes would be very helpful... |
IMO, this feature will be complete when copying will be supported. Cut doesn't add much compared to a simple drag and drop of the nodes, and cut/paste from one scene to another doesn't seem like a common use case. So I propose to postpone it to 3.1, and we can add functional copy, cut and paste working across scenes then as described in #3720. |
@akien-mga Thing is, for example, for me much preferred way to do CTRL+X/V than dragging nodes by mouse, especially if you need to do this more than once. I assume that I'm not alone in this workflow. |
bump? :) |
@Krakean Are you still up for implementing Copy support? We're closing in on 3.1 alpha and later on the feature freeze, so time is running short. |
Added ability to cut/paste of nodes on scene tree dock.
Of course we can just select nodes and move them via drag'n'drop to desired node, but cut/paste on tree/lists is something that is expected (nice to have, at least for Windows users).
This is how it works: https://i.imgur.com/7BdIdQY.gifv
Cut/paste icons: https://files.fm/u/w33v6624#_