I have an animation that’s being generated in Maya. This animation cause attributes under a node to change over time. I want to access the attributes (about 200 of them) for each frame and write that into a file. I’m currently using the OpenMaya MFnDependencyNode to find the required node and then using dependencyNode.findPlug on each frame to access the values.
This works but its very slow and I was wondering if there’s a better way to go through the timeline and fetch attributes. Currently, for a 10 second animation (60 fps), it takes about 18 seconds to access this data. Is there a faster way to do this? Thanks.