Page 2 of 2
Posted: Sun Feb 15, 2009 4:09 am
by DK
I was looking at the guts of the script and it's still beyond me how you can understand it but I'm glad you do:)
Thanks again.
D.K
Posted: Sun Feb 15, 2009 4:29 am
by chucky
It would be great to see a couple of lua tutes for noobs.
Like really basic stuff for all of us who have no freaking idea of what is what.
What do you think Synthsin75?
Posted: Sun Feb 15, 2009 6:35 am
by synthsin75
http://www.mediafire.com/?ayz9ja2tdl0
Here's one with left and right naming, DK. Select what bones you want to name or rename, and run this menu script. It will give you check boxes for left and right extensions for the names, and it will always rename the first bone created as 'root' whether it is selected or not.
So as long as you create both sides of your skeleton in the same order, you can then select one side and give them the right extension and the other side left. By same order I mean if you created them in this order :root, hip waist, chest, left collar, left upper arm, left forearm, left hand, right collar, right upper arm, right forearm, right hand, left thigh, left shin, left foot, right thigh, right, shin, right foot; then each side has the bones created in the same order relative the to the other bones on that side regardless of any intervening bone creation.
The number of bones and the order created doesn't matter, just that the bones of one side are created in the same relative order as the other side.
Chucky, yeah I've pondered doing that. The only problem is that you'd first have to explain lua, which has been done in many other places. And only then could lua in AS be easily explained. I've thought of doing a dissection of a simple script, but I'm not so sure that would help.
I may do one eventually though.
Posted: Sun Feb 15, 2009 6:45 am
by DK
Hi synthsin75....i just ran te script and it worked but it did not create the first bones as "root" for some reason.
Cheers
D.K
Posted: Sun Feb 15, 2009 6:48 am
by DK
oops...wait it just worked fine then???? That was strange? The first time I ran it the root bone was named 1_left....seems to be working fine now.
Manymany thanks synthsin75
Cheers
D.K
Posted: Sun Feb 15, 2009 6:56 am
by DK
Sorry....there IS something going haywire with the script. It names the first bone created as root and the last bone created as left_1 when both check bxes are selected.
EDIT: The other bones are left nameless.
D.K
Posted: Sun Feb 15, 2009 7:25 am
by synthsin75
Ooops. No that was my fault, DK. It was only renaming the first bone as root if it wasn't selected. This should fix that. Let me know if you have any more problems with it. The simpler the script the less I think I need to test it, I guess.
http://www.mediafire.com/?ml52zdolj2t

Posted: Sun Feb 15, 2009 7:28 am
by synthsin75
It only renames selected bones except for the first, root bone. I'm guessing you only had that last bone selected? And it only registers the first checked box.
Posted: Sun Feb 15, 2009 7:54 am
by DK
Hey, it works great!!! Thanks synthsin75. This will be really handy and quite time saving only naming selected bones. Ripper script mate
Cheers and well done!
D.K