Salutations cronies, I am having trouble getting the Record Animation setting to work. I have read and watched a number of tutorials but I cannot get my animation to be recorded. Here:FaceBonePythonTest2.blend (672 KB) is my blend file and the code for the modules called by it (to get the characters ears to move in a continuous sinusoidal manner).
## Program to slowly alter vectors of bones and servos which is ###### read by Blender ####
import os
import time
import math
#import serial
#ser = serial.Serial('COM6') #right port labeled 'SS'
i=0
def boneInstruc():
while 1:
global i #necessary to ensure using global variable
xRE=round(math.sin(i),2)
yRE=0.00
zRE=0.00
RE=[xRE,yRE,zRE]
xLE=round(math.sin(i),2)
yLE=0.00
zLE=0.00
LE=[xLE,yLE,zLE]
xTL=round(math.sin(i),2)
yTL=0.00
zTL=0.00
TL=[xTL,yTL,zTL]
i=i+0.01
#servo(xRE, xLE, xTL)
time.sleep(0.01)
return (RE, LE, TL)