sel = '|man_rig|hands|right_arm|right_hand_ctrl'
channels = ["translate", "rotate"]axes = ["X", "Y", "Z"]for channel in channels: for axis in axes: attribute = "{0}.{1}{2}".format(sel, channel, axis) in_conn = cmds.listConnections( attribute, source=True, plugs=True ) cmds.filterCurve(in_conn, filter="euler").._myAnimLayer_inputB .._myAnimLayer_inputA