This macro patch encloses its subpatches in a virtual trackball that the user can roll with the mouse.
The center of rotation of the trackball can be specified with the rotation origin X/Y/Z inputs. The trackball is rolled according to the mouse movement when the mouse primary button is down. The mouse tracking sensibility and the optional autorotation of the trackball can be set in the patch’s settings.
Note that this patch does not read the mouse state directly but is dependent on the proper information being passed to the composition. This information may not always be available, depending on the environment in which Quartz Composer is running.