How to duplicate same material

How can we calculate the center position automatically for RadialGradientExponential based on input we gave inside