Uname selected bones (solved)

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Uname selected bones (solved)

Post by Genete »

It would be very useful to me if someone writes a simple script that un-name [gives a name of an empty string ("")] to the current list of selected bones.

It should be a single action script by menu entry or button click.

Thanks in advance.
Regards
Genete
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

As well as nobody have helped me I have to do it by my self!!
Here it is.

http://genetita.googlepages.com/ge_uname_bones.lua

just select the bones you want to uname and execute this small but powerful script.

I use to have automatic naming of bones and shapes. Also the copy paste bones scripts name your just copied bones. If you want to copy a set of bones several times you need to uname the just recently copied ones before to copy the new set. If not you'll get a mess of bones badly re-parented.

This small script is a godsend to me... I hope also for you.
Genete
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

Hi!
I have converted this menu tool into a button to place it into the tool palette.

http://www.darthfurby.com/genete/Script ... _bones.zip

You can use the undo option and it is enabled only when one or more bones are selected.

You can place it at the Bone area (there is a free cell) modifying your _tool_list.txt file adding this line:

Code: Select all

button	ge_uname_bones		U
at the end of the Bone section.

I have selected the 'U' hot key because it is used for adding a shape in the Fill group but shapes and bones are self excluded.

Image

Hope you find useful this button / hot key.

-G
Post Reply