Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / MFnClip::getMemberAnimCurves - results not coupled
  RSS 2.0 ATOM  

MFnClip::getMemberAnimCurves - results not coupled
Rate this thread
 
39156
 
Permlink of this thread  
avatar
  • Total Posts: 1
  • Joined: 27 January 2010 06:38 AM

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.



Replies: 0