blender/release/scripts/modules/bpy_ext/Object.py

4 lines
135 B
Python

import bpy
class_obj = bpy.types.Object
class_obj.getChildren = lambda ob: [child for child in bpy.data.objects if child.parent == ob]