@classmethod
    def get_selected_reference_path(cls):
        selection = pm.ls(sl=1)
        if len(selection):
            node = selection[0]
            ref = node.referenceFile()
            if ref:
                print(ref.path)
                parent_ref = ref.parent()
                while parent_ref is not None:
                    print(parent_ref.path)
                    parent_ref = parent_ref.parent()
Z - MxQ
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/toolbox.py/Reference.get_selected_reference_path--crossover with--dataset/ETHPy150Open SheffieldML/GPy/GPy/kern/src/psi_comp/ssrbf_psi_comp.py/psicomputations