I am having an issue parenting a ‘spawned’ armature to a ‘spawned’ object. Armature and Object are contained in a ‘Person’ class.
If I parent prior to runtime, everything works great. I would like to add the option of choose different Meshes to ‘skin’ the armature.
self.Bones = bge.logic.getCurrentScene().addObject(obj,locat)
self.Body = bge.logic.getCurrentScene().addObject(obj,locat)
I have tried
self.Body.setParent(self.Bones) and the objects did parent, but not deform.
I have looked at
#select: first mesh and secon armature
bpy.data.objects[self.Body].select = True
bpy.data.objects[self.Bones].select = True
#Set parent bpy.ops.object.parent_set(type='ARMATURE_NAME', xmirror=False, keep_transform=False)
but did not get anywhere.
This is just a couple of the things I have tired but really can not get it to work, and have become frustrated.
Any help would be great.