View Full Version : joint api maya

01 January 2013, 02:29 PM

I am writing a .bvh translator so that I could import .bvh files.

I encounter many problems while I want to create a joint between a father and a child.

I chose the class MFnIkJoint as follows :

MStatus bvhTranslator::reader ( const MFileObject& file,
const MString& options,
MPxFileTranslator::FileAccessMode mode)
MStatus rval(MS::kSuccess);

[ ... ]

MStatus status;

MFnIkJoint joint1Fn;
MVector vec(2.0,2.0,2.0);
status = joint1Fn.setTranslation(vec,MSpace::kTransform);

MFnIkJoint joint2Fn;

[ ... ]

Then I have to create a joint2 as a child of the joint1 but I don't know how create joint2 as a child of joint1 ?

How could I do that ?


CGTalk Moderation
01 January 2013, 02:29 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.