I’m working on an addon for the Leap Motion Controller and need to know how to update the 3d view during script runtime. The leap motion is tracking a hand’s position and outputs a 3d position via (X,Y,Z) coordinates. I can get the cube to move, but it only goes to the last hand position when I stop the script. How can I make the cube continuously move?
Is it something where I need to call a new draw function or an update or what? I’ve spent 3 hours on the api site and came up empty.
I’m currently using this code to modify the cube’s position. Am I doing it wrong?
bpy.data.objects["Cube"].location = (p.x/10, p.y/10, p.z/10)
Thanks for all your help- Andy