I've tried parenting object to vertex in python. However, when I change the object, the object transformed to another location.

I found the related post:

Python automate Assign parent relation and keep transform

which suggests to do the following:

obj1.parent= obj2
obj1.matrix_parent_inverse = obj2.matrix_world.inverted()

It works, However, when I change parent type to vertex:

obj.parent_type = 'VERTEX'

It changes it again to another location. Someone knows what is the correction to vertex type?



You must log in to answer this question.

Browse other questions tagged .