How to make a post process effect follow a spline?

Hi, I followed this tutorial : Unreal Engine - Creating a post process effect masked by a radius around the character's position - YouTube
How would I go about making the effect follow a spline or something like that instead of being a circle?

I’d be interested in this too