UR5+vision - coordinate system difficulties

Link to a previous discussion of this script solution: