The robot arm is expensive because it needs precision hardware (backlash free bearings/gearing).
Your idea also requires precision hardware to move the sphere.
Your idea also requires precision hardware to move the sphere.
It's a better idea than dipping with a robot arm. And also faster.