Export character movement

Hi everyone,

I want to export the movement of a character to use it in 3ds Max or other software.
My idea is to spawn a spline or something else on my character and at the end I want it to be exported as a obj/ fbx file. Is there any chance to do so?
When I press a key i want to start spawning a spline or something else and when I press the key again I want to stop spawning and export the created spline as a file like fbx or obj. But my question is: is there any way to do so?
I am not an expert in programming so I am asing the expert here if something like this is possible.
Hope the mighty internet can help me with this :wink: