The original idea is to first make a grease pencil stroke, click on edit stroke to select the vector you want for keyframes. In my script, I want to use 8 keys so I have to click on 8 points within the grease pencil stroke. Then the script would use 8 points as keys. The great thing about this is when your keys are close to each other the object will automatically animate faster when 2 keys are further apart they will animate the object slower. The issue I am having is if your 2 selections are too far apart it will not follow the path.
Here is a quick video I made.
Can someone help me improve this by adding the correct path while keeping the timing for the animation?
The .blend is here greasepencilscriptingfollowingtrack.blend (512.1 KB)