Delete bones maintains proper constraints

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Delete bones maintains proper constraints

Post by heyvern »

Has anyone done this yet?

Because... I think I just did it. It was driving me nuts so I just poked at it till I got it to work. I have to do some more "robust" testing but so far it seems to work.

It is just a new version of the bone select tool. But the delete bone function stores the old ID's and offsets the constraint ID's by 1 if the old number is less than the deleted bone's ID...

<sigh> my goodness I lost track already...

Anyway it seems to work. I will post it when I am sure there are no big problems. Best bet I think is to make it a "custom" bone deletion tool for special situations. At the moment it doesn't handle deleting bones with children which is fine by me.

I will create a new script with custom icons etc etc and post it later.

Finally I can delete bones! I haven't been able to delete bones in ages because of all my constraints. I kept extras in a nice pile off to the side and reused them. ;)

-vern
paulcopeland
Posts: 95
Joined: Tue Mar 03, 2009 2:04 pm

Post by paulcopeland »

Hi.

I would love to get this script if it is available.

Thank you.

Paul.
Get my free piano sheet music here http://www.scoreexchange.com/profiles/pianoedition
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

This was fixed in an update ages ago so it isn't needed any longer.

-vern
Post Reply