ball(billiard like) rolling script with modal-timer for rotation update

(i used blender-2.58 r37798)
ball(billiard like) rolling script with modal-timer for rotation update

the script updates the rotation of all objects with names like
myBall, myBall…
and rotates them like a ball with radius 1.0 according their
movement in the x-y-plane.

the small blend-file is ready for testing:
run-script, 3D-view colour change shows it is running,
press alt-a to view the animation,
stop script with Escape (maybe twice, if first escape stops running animation…)

or

run-script, select one sphere and move it around …

what is missing: maybe it would be nice to record the rotations to animation-fcurve

Attachments

timer1_ballrolling.blend (87.3 KB)

Hey there, found this post through the search engine. Downloaded the script but not working in Blender 2.71. Do you have a more recent version you could share please?

Many thanks!