Rotate a bone

Hello, I want to rotate a bone with Python, despite the fact that I have found the answer to the question, it does not work for me.

http://tiku.io/questions/2777536/change-bones-position-in-a-armature-in-blender-game-engine-using-python


import bge
import time


def main():
	armature = bge.logic.getCurrentScene().objects['Armature']
	bone = armature.channels['Bone']
	bone.joint_rotation = [0, 0, time.time()]
	armature.update()
	print(bone.rotation_euler)



Am I missing something?

Attachments

BGEMoveBone.zip (75 KB)