Get curves when there are animation layers
import maya.cmds as cmds curves = [curve for curve in cmds.listHistory(pdo=True, lf=False) if cmds.nodeType(curve, i=True)[0] == 'animCurve']