Curve - ipo - python

Hi,

I’m using Blender to simulate the movement of a satellite around the earth.
I successfully represented the motion of the Earth, the Moon and the satellite with python and ipo curves.

It is quite easy to represent the position of each body at a certain frame with, e.g., such a piece of code:


l=365.25*n
for i in range(1,l,1): 
  x=10*(xl2+Ax*cos(wxy*(i-1)*2*pi/n+pxy))
  y=-10*Ay*sin(wxy*(i-1)*2*pi/n+pxy)
  z=10*Az*cos(wz*(i-1)*2*pi/n+pz)
  sat_ipo_locX.addBezier ((i,cos((i-1)*2*pi/l)*x-sin((i-1)*2*pi/l)*y))
  sat_ipo_locY.addBezier ((i,sin((i-1)*2*pi/l)*x+cos((i-1)*2*pi/l)*y))
  sat_ipo_locZ.addBezier ((i,z))

My problem is that I would like one of the ipo curves (the one associated to my satellite) to be clearly visible and appear as the satellite follows its orbit.

It needs to be very precise so the ipo curve editor is not so useful for me. Is there any way to do it with python? The progressive appearance is an extra.

Thanks for your help,

Chhhub

Edit : copy of this thread put in the Python part of the forum …