Jump to content
  • Advertisement
Sign in to follow this  

Maya API MFnIkJoint and set the position of the bone joint in space?

This topic is 3019 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 wanted to create 2 bone joints.I wanted to set the position of the joint in world space.May be I am using wrong method. Please help. Many thanks in advance MFnIkJoint joint1Fn; MObject join_a=joint1Fn.create(MObject::kNullObj,&stat) MFnIkJoint joint2Fn; MVector vec= MVector(20.0,0.0,0.0) //MTransformationMatrix::setTranslation(vec,MSpace::Space) //::addTranslation(vec,MSpace::kWorld) joint2Fn.setTranslation(vec, MSpace::kWorld ) MObject join_b=joint2Fn.create(MObject::kNullObj,&stat) joint1Fn.addChild(join_b,1,false) joint2Fn.setTranslation(vec, MSpace::kWorld )//I am not sure where to set translation,before //creating the bone or after creating the bone?Nothing happened with this code.Both joint shows at origin(0.0,0.0,0.0)in maya interface.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!