I haven't tested this, but something like this will work: import json
import maya.OpenMaya as openmaya dagIter = openmaya.MItDag(openmaya.MItDag.kDepthFirst, openmaya.MFn.kCurve)
output = [] # Iterate through all of the dag nodes and get the curves.
while not dagIter.isDone(): curveIter =…