You can create a custom macro method in which the parameter that you pass in is the id stored by the other selector. Then use the custom method to return other properties. Usually I will also have another parameter which you can choose what field to return. Custom Macro Method Instructions
After that, just use the namespace and function name in your transformation, and as long as you register your class correctly, it should show up and give you intellisense.
//returns Object Name
//BPMacros is my custom namespace and then MyFunction is the name of my function declared in my class
{% BPMacros.MyFunction(FieldThatContainsIDofObj, "ObjectName") |(identity)GlobalAdministrator%}