As is the p(n).x expression doesn’t deal with picking at all.
You could do an object type per path and duplicate the event. Or just have one type with all the paths where you’d pick the path you want and create p sprites on them. Or you could store the points in an array and do array lookups instead of accessing the nth instance.
You could stick with one type and consider a range of iids for each path. That would require some logic to loop the indexes in the range.
You could also break the formula apart to be longer and more verbose using variables. Then you could mark the p instances with a path id. You’d pick the instances with a certain id then use pick nth instance for the two points and set variables from each.
Anyways just some ideas.