How do I build an attractor in the thickness of the Pipes?

Hello
you can use Variable Pipe, see an example here

or you can do your own plugin to better suit what you need.