I have two objects each of them hold in a variable. Now I want to parent them so object A is the parent of object B. How can I do this using Blender's Python API? I know there is a parent_set operator in Blender but I don't know how to set up the selection in the scene via Python so I just have to call
bpy.ops.object.parent_set(...)
It looks like there is a parent attribute on objects which I can use like
b.parent = a
How can I use that?
bpy.ops.object.parent_set. When using thebpy.opsAPI, everything is as expected. However, when settinga.parent = b, a strange transformation is applied to the child object. Any idea? – schlamar May 22 '15 at 11:44