ob.getChilren() often requested for 2.4x api, notice this is only 1 line of python.
This commit is contained in:
4
release/scripts/modules/bpy_ext/Object.py
Normal file
4
release/scripts/modules/bpy_ext/Object.py
Normal file
@@ -0,0 +1,4 @@
|
||||
import bpy
|
||||
class_obj = bpy.types.Object
|
||||
|
||||
class_obj.getChildren = lambda ob: [child for child in bpy.data.objects if child.parent == ob]
|
||||
Reference in New Issue
Block a user