Reading coordinates from a file

Hi!

I’ve created a file of coordinates and I’d like to move an object by reading those coordinates…

I’ve put a “while 1” and every time I read a line I call Blender.Redraw…I think that it is not the best way…In addiction I’d tryed to move an other object with the same script but with other coordinates and… I can’t move more than an object in the same moment!!! :expressionless:

Please, help me!! :wink:

Dany

Look at this page, the second script reads a data file:
http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_pythonraw2mesh.htm

:stuck_out_tongue:
Thanks a lot…
But…It is very similar to my script… %|

I have associated it (in edit button->controllers…) to 2 objects, a cube and a sphere, and I’d like to move them concurrently…but they don’t…

In addiction if I do it in this way I can’t have other kind of animation…

Is there any reason you can’t just use the Copy Location constraint ?

Press F7 and then Add Contraint>>>>>

Thanks!

But I’d like to use GameEngine (I have BlenderPubl. 2.25) and to write a script that gave a path to an object, reading coordinates from an input file…

The result I’d like to have should be, after push the magic button ‘P’, to move cuncurrently 4 objects in different ways…

Is it possible?

I’m going crazy about this… :Z