scriptTrigger is a Maya script from Peter Richardson that will trigger the selection of one object with the selection of another. It is very similar to what is seen in Andrew Silke’s long-time Generi-Rig.
“The script makes a scriptNode, which creates and tracks a scriptJob. The scriptJob checks selected objects each time something is selected, and if the control object is first in the selection list, the target objects will be selected as well. Since scriptJobs only last until the scene is closed, the scriptNode also re-creates the scriptJob when the scene is reopened.”