View Full Version : create joints

01 January 2013, 04:46 PM

I am writing a bvh files translator in API C++ maya.

I use the class MFnIkJoint and I have some difficulties in creating a skeleton. Actually, I don't know how specify the fact that joint2 would be the child of joint1.

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

MFnIkJoint joint2Fn;
[ ... ]


01 January 2013, 06:36 AM
It inherits from MFnDagNode, and it has addChild(). See the doc under member list. You could also initialize a new MFnDagNode with your joint MObject.

CGTalk Moderation
01 January 2013, 06:36 AM
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.