I’m trying to control an armature from outside Blender by sending displacement values via OSC. All goes well and I get the data in Blender using Python. I’m quite confident with the scripts and OSC stuff since I can make it work with a simple armature used for testing purposes.
Now I need to apply this on a different blend and therefore a different armature but I can’t make it move for some reason.
What I basically do is
(...) scene = bge.logic.getCurrentScene() avatar = scene.objects["Armature"] (...) # Get data from outside using OSC into the variable "positions" (...) # ------------ Updating armature ---------------- # for cn in rest: channel = avatar.channels[ cn ] channel.location = positions[ cn] avatar.update()
I can’t figure out why it does not work with the new armature.