Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Object.py « bpy_ext « modules « scripts « release - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d1916b231507f9394f8a57e9767ec85f6f92b690 (plain)
1
2
3
4
5
6
7
8
9
# This software is distributable under the terms of the GNU
# General Public License (GPL) v2, the text of which can be found at
# http://www.gnu.org/copyleft/gpl.html. Installing, importing or otherwise
# using this module constitutes acceptance of the terms of this License.

import bpy
class_obj = bpy.types.Object

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