Object Matcher is a tool for selectively matching the translation, rotation, and/or scale of one object to that of another.

It is able to do this regardless of what incoming connections the object has.

1. Download ObjectMatcher.zip and extract it to:

C:\Users\YOURNAME\Documents\Maya\Scripts

2. Assign the following Python code to a shelf button (Maya 2022 and later):

import importlib
import ObjectMatcher
importlib.reload(ObjectMatcher)
m = ObjectMatcher.ObjectMatcher()

Or use this code for earlier versions of Maya:

import ObjectMatcher
reload(ObjectMatcher)
m = ObjectMatcher.ObjectMatcher()