def inColor(self): inputs = cmds.listConnections(self.attr('inColor'), d=False, s=True) if inputs: return inputs[0]