|
Hello everyone,
I’m writing an exporter for Maya 2009 and, from the documentation, I understand that MFnClip::getMemberAnimCurves fills two arrays which are coupled, i. e. at the i’th index of the first array I can find the MObject representing the curve driving the attribute whose plug is at the i’th index of the second array.
Well, at some point in my code I fetch the clip’s MObject through MFnCharacter::getScheduledClip and I put it in a structure. Late in the code I use that object to construct th MFnClip object and I use getMemberAnimCurves to get the arrays. Then I search the second (plugs) array for a specific attribute and I use the corresponding object of the first array to instantiate the MFnAnimCurve function set and retrieve animation info to export. I found many situations (mainly scenes with a simple joint architecture and many clips and subchars) where this doesn’t work: I come up with a curve different from the one that drives the attribute I was looking for. I checked this in the scene graph panel with the curve’s name.
Any idea on how could this happen and how to fix it? Thank you in advance for your time.
|
|
|