I tried a few things, but nothing works so far.
I just need a cube to travel along a path, and at the end it should just reverse the movement and travel back to the origin. A “U”-shaped path does not solve it, I need the cube to not rotate, but to keep the same orientation all the time.
I tried this:
if scene.frame_current == 100:
#bpy.ops.screen.animation_play()#this just stops
But it just stops the animation.
And having both animation_play() activated crahes Blender?..
Many thanks for help!