Home Coding, Scripting, Shaders

Manipulating and record animation from code in Blender

I've been trying to apply some movement routines to a few bones in a skeleton using code and then recording that motion as keyframes. My first attempt has been to apply the Lissajou Curve to a bone:

for i in range(0,1000):
  t+=0.01
  x = A * sin(a*t + delta)
  y = B * sin(b*t)

Where t is a timestep. So, over a given time, the bone would move the way I intend it to. How can I apply this to a Bone in Blender, and then record the outcome?

Replies

Sign In or Register to comment.