Mods Add Bone and Select Bone tools 9.5 only

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

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
Lukas
Posts: 1294
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by Lukas »

Cool. Personally I have enough space in the select bone toolbar (I guess it depends on screen size), so if you have it laying around, I would love to use it anyway.

I took the liberty of changing your color icons to match the rest of the GUI. You can use them if you want. (zip)

Image
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by chucky »

Nice Lukas
User avatar
Lukas
Posts: 1294
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by Lukas »

Videodv, 3 suggestions that would make your add bone modification even better:

1. The ability to set strength, I modded my own add bone tool to always create bones with strength 0, but it would be better to just have a box in the top toolbar which would remember your favourite setting.
2. A checkbox to snap the origin of a bone to the tip of the currently selected (thus, parent) bone.
3. Bone chain creation, a box that where you can fill in how long the chain will be. So you can draw a single line with the tool and it would create a chain.

Probably a lot of work, but you never know. ;)
videodv
Posts: 69
Joined: Tue Feb 08, 2011 10:17 am

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by videodv »

Hi Lukas

Love the bone icons already put them into use :D
Image

I have updated the script so you can show bone labels - set the strength and also to set constraints.

But the problem as always is room on the tool bar (on mine it go's off the screen) so wondering if I use a "set properties" drop down dialog instead (like in the select bone tool) so you can set all the currently selected bone properties? what do you think?

The other ideas you have Lukas I will explore and see what I can come up with (keep in mind I am by no means and expert with ASP scripting or know the more advanced functions), maybe a few pointers from the experts on here :D

Regards
Chris.
User avatar
Lukas
Posts: 1294
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by Lukas »

Sweet!
videodv
Posts: 69
Joined: Tue Feb 08, 2011 10:17 am

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by videodv »

Will upload the script shortly as doing final checks at the moment.

Regards
Chris.
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by chucky »

videodv wrote:Will upload the script shortly as doing final checks at the moment.

Regards
Chris.
Cool!
videodv
Posts: 69
Joined: Tue Feb 08, 2011 10:17 am

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by videodv »

I have uploaded the latest version of this script (both 7z and winzip)

If you are already using this script you will need to change the add_bone.lua and the cw_utilities.lua files, I have also updated the bone icons for those of you who wish to use Lukas great icons :D

The new workflow is create and name/colour your bone then while the bone is selected use the show label - adjust the bone strength (still working to get this to show in the viewing area but it will change the strength) then tick the constraints box and adjust.

As always if you have any problems just let me know.

Regards
Chris
User avatar
Lukas
Posts: 1294
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by Lukas »

Nice videodv :)

I had expected it to work a little differently though... Because it's the 'add bone' tool, not the 'select bone', you'd expect if you have set strength (in the toolbar of Add bone) to "0", and you draw a bone, the new bone would have strength "0".

Instead, it's only for adjusting the selected bone. Was that your intention?

I thought this would be nice to set bone strength and show label BEFORE creating the bone, not after.

Still appreciated though! I'll be using this for now
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by chucky »

Lukas wrote:Nice videodv :)
I thought this would be nice to set bone strength and show label BEFORE creating the bone, not after.
Lukas has a good point here, I often would like to zero before creation when creating smart bones.
videodv
Posts: 69
Joined: Tue Feb 08, 2011 10:17 am

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by videodv »

Lukas wrote:Nice videodv :)

I had expected it to work a little differently though... Because it's the 'add bone' tool, not the 'select bone', you'd expect if you have set strength (in the toolbar of Add bone) to "0", and you draw a bone, the new bone would have strength "0".

Instead, it's only for adjusting the selected bone. Was that your intention?

I thought this would be nice to set bone strength and show label BEFORE creating the bone, not after.

Still appreciated though! I'll be using this for now
After you have created your first bone and set options they will apply to all others (or should do!)

Will look at this again and make some changes.

Regards
Chris.
videodv
Posts: 69
Joined: Tue Feb 08, 2011 10:17 am

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by videodv »

This quick fix is now in the main script ready to download.

Regards
Chris.
Last edited by videodv on Fri Dec 13, 2013 5:37 pm, edited 1 time in total.
rocky53204
Posts: 223
Joined: Sat Sep 03, 2011 3:34 am

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by rocky53204 »

Very nice script! Helluva job, very useful! Grateful thanks!
rocky53204
Posts: 223
Joined: Sat Sep 03, 2011 3:34 am

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by rocky53204 »

Throws error in ASPro 10
videodv
Posts: 69
Joined: Tue Feb 08, 2011 10:17 am

Re: Mods Add Bone and Select Bone tools 9.5 only

Post by videodv »

Hi rocky

I have updated this script to V10 you will find it on the first page it is just the lua file all others are the same.

This works on my setup but if you have problems let me know.

Regards
Chris.
Post Reply