def hideTransforms(transform, translate="xyz", rotate="xyz", scale="xyz"):
    """Hide and make unkeyable transformation channels on the given object.
    
    Returns a dictionary of transform axes that were hidden.
    """
    hiddenAttrs = {"translate": "", "rotate": "", "scale": ""}
    
    for axis in translate:
        attr = transform.attr("t{}".format(axis))
        attr.setKeyable(False)
        attr.showInChannelBox(False)
        hiddenAttrs["translate"] += axis
    for axis in rotate:
        attr = transform.attr("r{}".format(axis))
        attr.setKeyable(False)
        attr.showInChannelBox(False)
        hiddenAttrs["rotate"] += axis
    for axis in scale:
        attr = transform.attr("s{}".format(axis))
        attr.setKeyable(False)
        attr.showInChannelBox(False)
        hiddenAttrs["scale"] += axis
            
    return hiddenAttrs