Controlling a Disk of Rotational DOF

Yellow disk is controlled by three step motors (grounded) via gear drives and a spherical mechanism (axes of all nine revolution joints are concurrent).
By combination of positions of green, beige and violet bars the disk can reach any angular position in 3D space. However, the calculation is not simple.
See a real mechanism:
/watch?v=soWiX1eqZq0