Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Exporting skeleton from Maya

This topic is 6011 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I have created an exporter plugin for maya which exports the mesh in the binding pos and the skeleton for all frames. The mesh exporter works, but i wasn't able to export the correct matrices for the joints. Has anyone experience with exporting joints from maya? Thanks for your help! Currently do it that way:
   // get joints

    // iterate over all skin clusters in DG

    MSpace::Space space = MSpace::kWorld;
    MItDependencyNodes itNodes(MFn::kSkinClusterFilter);
    for( /**/; !itNodes.isDone(); itNodes.next()) {
      MFnSkinCluster fnSkin(itNodes.item());

      // get all influence objects for skin cluster

      MDagPathArray infObjArray;
      fnSkin.influenceObjects(infObjArray, &stat);
      for (unsigned int iInfluence=0; iInfluence<infObjArray.length(); iInfluence++) {
        // get bones

        float m[4][4];
          exporters->addJoint(infObjArray[iInfluence].partialPathName().asChar(), Matrix4(&m[0][0]));
Have fun Bunnz [edited by - Bunnz on May 4, 2003 6:25:24 AM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!