Need to duplicate node4 and reassign the copy to another parent (node1). I’m using duplicate() and reparent() but instead of duplicating, it’s removing from node3 and adding to node1 children
I’m not sure how are u doing it. Would be good to have your code here to try to figure it out.
I tried with the following and worked as expected:
var node_to_clone := get_child(1).get_child(0).get_child(0) # node4
var clone := node.duplicate()
get_child(1).add_child(clone) # add the clone as a child of node1
You can find here the duplicate method documentation and see that it returns a new node that u can handle, but it’s not in your scene tree yet, so u can’t reparent it.