using transformation matrix in IPOs instead of LocX, RotX?

I am writing a scrip which reads a motion path out of a file and generates animated objects.

At the moment, I use a routine like this:



# create new IPO
my_ipo=Ipo.New('Object', blenderobjekt.name)
# !!! write X,Y,Z into IPO-curve
ipo_x=my_ipo.addCurve('LocX')
ipo_y.....
ipo_z.....

ipo_x.addBezier((time, x_coord))
ipo_y.....
ipo_z....

ipo_x.Recalc()
ipo_y....
ipo_z...

# !!! write  rotatoion  into IPO-curve
iporot_x=my_ipo.addCurve('RotX')
iporot_y....
iporot_z.....

iporot_x.addBezier((time, x_rot))
iporot_y......
iporot_z......

iporot_x.Recalc()
iporot_y....
iporot_z...
# end of IPO
Blender.Redraw()

But in my motion file, I have a 4x4 transformation matrix of each point so I would like to avoid to convert this and better use the 4x4 matrix directly.

I found a way to apply a single matrix to an object, but I could not find how to “connect” them to an IPO (Loc/Rot).

Is there a better solution?

Thanks for any hints

Stranger