Well, this can be achieved with a simple stroke effect…….combined maybe with some glow.
You can create a solid. Then draw a line on it the way you want the stroke to happen and apply the stroke effect to the solid. Choose the mask as path and on transparent as paint style.
Then you can make your layer (solid) 3D and play around with the camera or even the layer´s rotation/position itself. After that keyframe the start/end points to make it come and go.
You can also add some glow effect to give it a little kick……..
Or you can use trapcode 3D stroke. It´s almost the same stuff but a lot better.(weird way to say something!)
Hope I could help.
Cheers.
a.ninguem.