Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bpy
- def recursiveSelect(parent):
- for child in parent.children:
- child.select_set(True)
- if child.children:
- recursiveSelect(child)
- initialSelection = bpy.context.selected_objects
- for obj in initialSelection:
- recursiveSelect(obj)
- for obj in bpy.context.selected_objects:
- obj.hide_set(True)
Advertisement
Add Comment
Please, Sign In to add comment