Animate objects following a grease pencil stroke? Hi there my question is can you animate something on top of your grease pencil stroke? Make it act like a train track and your default cube as the train. The cube element would just move on the grease pencil stroke from beginning to end? I know python I just needed to be pointed to the right direction to get started.
I don't think it is possible to use a Grease Pencil stroke directly as animation path.

What you could try instead is convert the desired grease pencil stroke to a Bezier Curve object and use it instead.

If you need the original grease pencil try converting a copy of it instead, so you can keep both intact.

This answer describes how you can do it in more detail.