Its obviously very buggy, but I did my best to make it accurate to a Human Hand
How it works:
Mags
Distance Sensor
Hinge with a Current Rotation
The mag holds the item in place
The distance sensor activates a few switches
The Dis sensor turns the mag on at .2 blocks away
When the mag is on, the pivot stays in its current place to hold the object in place