Joint SplitTool

Hi,

I am new to python and writing tools in maya.

I am working on writing a split joint tool.
I am having some problem with it. The joint does not seem to be created at the right spot.

Here is the code:


Before splitting:


After splitting:


I do not seem to find, the mistake. I am sure, it is going to be simple. But, I am just trying to thinking through it.

It would be great to get some help.

Thank you.!:):

Hi,
I did a quick tutorial on a similar thing a while back. It is in pymel but it is almost the same as doing it with cmds. Here is the link: Robot Squids: Pymel Bone Split Tutorial part 01
Hope it will help figure out what is wrong with positioning in your script.

Thank you!

I will check it out

Thanks Armin aka raziel. Watched your video as I needed an intro to PYMEL. Very nice. Keep 'em coming :slight_smile: