zoobie
01-06-2013, 01:29 PM
Hi,
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;
joint1Fn.create(MObject::kNullObj,&status);
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 ?
Thanks
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;
joint1Fn.create(MObject::kNullObj,&status);
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 ?
Thanks
