midicon Posted December 18, 2015 Share Posted December 18, 2015 HI I'm trying to create a tool that Matches IK to FK in a click of a button, using python. Everything works great untill I copy the translation information from the tempNull (Which is put in place to act as the pre-transforms for the IK) to the ikHandle. When I run to tool they both fly off in to space? when I was hoping that the ikHandle would snap to the end of the bone. I'm assuming that this has something to do with pre-transforms but I can't figure it out. I have attached 2 still's as one is of the tempNull working correctly and snapping to the end of the bone (before I copy the transforms to the ikHandle) and the 2nd is the tempNull and the ikHandle shooting off into space. Has anyone experienced this? Sorry if this is vague, any help is greatly appreciated Rob Quote Link to comment Share on other sites More sharing options...
dayelov Posted December 23, 2015 Share Posted December 23, 2015 Try to use this option under the preferences tab Quote Link to comment Share on other sites More sharing options...
dayelov Posted December 23, 2015 Share Posted December 23, 2015 Try to use option from a first picture and run the script.If it's not working you need to set Child Compensation option in your python script on the IkHandleyou need to try both options, I don't remember the exact parenting and pre-tranform stuff in houdini Quote Link to comment Share on other sites More sharing options...
edward Posted December 27, 2015 Share Posted December 27, 2015 You can't just do parenting because that will cause the IK to error. Instead, get the transform of the tip of the bone directly and then it set it into the null. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.