Importing animation values for each frame from an outer source


Looking for ways to easily use pre-generated data to be used within Cinema 4D to create motion. Let me give an example of, say, a sphere object in a c4d scene, which is expected to move only on the x axis with a code similar to:

Frame1: Sphere.x = 0
Frame2: Sphere.x = 0.5
Frame3: Sphere.x = 1.0
and on…

I can change syntax accordingly.

What approach should I adopt in order to easily copy paste a script (or merge the values directly into a targeted value) in a c4d project to achieve this?

Is it XPresso, Python or something else?