PDA

View Full Version : create joints


zoobie
01-07-2013, 03:46 PM
Hello.

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;
joint1Fn.create(MObject::kNullObj,&status);
MVector vec(2.0,2.0,2.0);
status = joint1Fn.setTranslation(vec,MSpace::kTransform);

MFnIkJoint joint2Fn;
[ ... ]

Thanks

zoharl
01-08-2013, 05: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-08-2013, 05: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.