Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func getallnodes(node):
- for N in node.get_children():
- if N.get_child_count() > 0:
- print("["+N.get_name()+"]")
- getallnodes(N)
- else:
- # Do something
- print("- "+N.get_name())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement