Skip to content
Dealga McArdle edited this page Nov 22, 2015 · 3 revisions

More examples of parenting, with respect to dupliverts / duplifaces.

If you want to parent one object to another, don't use bpy.ops, use the .parent attribute instead. For example if you have a Cube and want it to be the parent of a Sphere.

objects = bpy.data.objects
cube = objects['Cube']
sphere = objects['Sphere']
sphere.parent = cube

Clone this wiki locally