This code used to work very well:
from Blender import Ipo, Object
from math import *
ipo = Ipo.New('Object', 'ObIpo') # Create object ipo with nam$curve = ipo.addCurve('RotZ') # add IpoCurve for LocY
curve.setInterpolation('Linear') # set interpolation type
curve.setExtrapolation('CyclicLinear') # set extrapolation type
curve.addBezier((0.0, 0.0)) # add automatic handle bezie$curve.addBezier((100.0, 2*pi)) # auto handle
curve.update() # recalculate curve handles
ob = Object.get('Plane')
ob.setIpo(ipo)
Now I am getting this error:
Traceback (most recent call last):
File "rota.py", line 9, in ? curve.addBezier((0.0, 0.0))
TypeError: expected list argument
I have tried different ways including a python list [0.0, 0.0]. No success. How has changed the IpoCurves syntax? Any hint?
Thanks.
Alex