Remember the little bird who went around asking everybody "are you my mommy"?
Well. I'm in the same predicament. I'm an instanced transform. I want to connect a friend to my instObjGroups array or parentMatrix array -- but I don't know who my parent is. I don't know which index represents me.
To restate: If I am the full path of an instanced object, how do I figure out which index of the instObjGroups/parentMatrix represents me?
It's possible (and probable, in my case) that two or more of the parentMatrices overlap -- so finding my actual parent via listRelatives and then comparing it against the data from each getAttr parentMatrix[X] is NOT an option -- even as the brutish hack that it is.
I guess I could create a temporary group, constrain it to myself, and then check to see which index it connected to. Gawd what a hack... is there a cleaner solution?