Smart Bone Helpers by Ramón López

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

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Smart Bone Helpers by Ramón López

Post by funksmaname »

Hey all,
I'm excited to share these time saving scripts with you. With Ramón's permission, I've made a video showing how to use them, and you will find the files below (once I've uploaded them to ASS)



The scripts let you quickly create and then access the two smart actions associated with any selected bone by use of a button or keypress.
Copy all files in the zip file into your Resources/Support/Scripts/Tools (PC) or custom content Tools folder and add these lines to the bottom of your _tool_list.txt

group MOHO.Localize("/Tools/Group/SmartBones=SmartBones")
button rl_smart_bones_add M
button rl_smart_bones_n1 ,
button rl_smart_bones_n2 .
button rl_smart_bones_remove /

Now whenever a bone is selected, M creates a new action (max 2) and once created , and . go in and out of action 1 and 2 respectively. While in either action pressing / will delete that action (with confirmation step)

Hope you enjoy this huge time saver! The link will be added below as soon as it's uploaded and ready for download.
As always, thanks Ramón!!

Until they get approved at ASS, I've uploaded the zip file to mediafire for you: http://www.mediafire.com/?i8fwad8a2e68fkv
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Re: Smart Bone Helpers by Ramón López

Post by ulrik »

:D Really handy scripts!! Thanks a lot for the tutorial and thank you Ramon for the scripts!!
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Re: Smart Bone Helpers by Ramón López

Post by ulrik »

I just changes the shortcut for rl_smart_bones_add M to - instead since M is assigned to LM's Transform Layer Tool
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Re: Smart Bone Helpers by Ramón López

Post by funksmaname »

Usually that is on 1... Did u change it sometime?
User avatar
freecartman™
Posts: 19
Joined: Thu Jul 29, 2010 10:15 pm

Re: Smart Bone Helpers by Ramón López

Post by freecartman™ »

Sry for this stupid question, i've been far from the forum and Anime Studio for a long time.
Is this script for Anime Studio 9?
Image
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Re: Smart Bone Helpers by Ramón López

Post by ulrik »

funksmaname wrote:Usually that is on 1... Did u change it sometime?
No, not that I remember any way, and you're right, it used to be 1...strange
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Re: Smart Bone Helpers by Ramón López

Post by ulrik »

freecartman™ wrote:Sry for this stupid question, i've been far from the forum and Anime Studio for a long time.
Is this script for Anime Studio 9?
Yes it's for v.9
User avatar
heyvern
Posts: 7035
Joined: Fri Sep 02, 2005 4:49 am

Re: Smart Bone Helpers by Ramón López

Post by heyvern »

Phew!

Thanks for this. What a relief. Saves me the effort of trying to script it myself! :) Awesome job. Very effective and elegant solution. I was bouncing some ideas around in my head on how to best do this and I don't think I could have come close to this solution.

My only suggestion would be to add another button (or modify the existing "plus" button) to allow for multiple "smart boning" of a group selection of bones in one go. I am redoing a bunch of older files and already have my bones ready to "get smart" and it would be cool to just select all of them in one shot, push a button and BANG have a whole pile of bones ready to go back to school to earn their degree. :)

I may do this on my own as a menu script to create smart bone actions for bones with a text prefix. You could use a prefix to identify smart bones in the rig, type that into a script and create ALL of the smart bone actions ready to use with these new tools.

---

p.s. Had an idea about converting "fan bones" to smart bones by copying the point motion of the fan bones INTO the smart bone actions and then deleting the fan bones. This would allow me to quickly convert v8 files to v9 with smart bones.

-vern
User avatar
Rai López
Posts: 2228
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Re: Smart Bone Helpers by Ramón López

Post by Rai López »

This is really cool! I mean, the video tutorial and all... thank you very much funksmaname! :D Plus you were quick man...

Oh, yeah, I changed the shotcuts at some point due to the new "Transform Layer" tool took the "M" one for it, here is my new choice (more separated but with a little more sense OTOH) just in case someone be interested:
  • Code: Select all

    group MOHO.Localize("/Tools/Group/SmartBones=SmartBones")
    button   rl_smart_bones_add   +
    button   rl_smart_bones_n1   1
    button   rl_smart_bones_n2   2
    button   rl_smart_bones_remove   -
    

Interesting point about the several selected bones assistance Vern! Really, it's curious to see how there's always room to improve even the most simple things :). I see too how a little rename assistant or something so could be really useful, and... well I think you have good experience on that camp ;)

Well, I'm happy to can contribute in someway in the use & enjoy (hmmm, couldn't that be like a good slogan for SB?) of the most interesting and promising Anime Studio addition ever! So thanks again for your time and interest, and greetings :)
...
User avatar
DK
Posts: 2849
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Re: Smart Bone Helpers by Ramón López

Post by DK »

Thanks Ramon.
This is absolutely brilliantly time saving!

Cheers
D.K
User avatar
Lukas
Posts: 1295
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: Smart Bone Helpers by Ramón López

Post by Lukas »

Yay!

I didn't understand why smart bones were implemented the way they are (naming actions the same as a bone), clicking into the smart bone to edit the vectors makes so much more sense.

These will help out a lot, thank you!
User avatar
gr33ndaybd
Posts: 11
Joined: Wed Aug 03, 2011 9:22 am
Location: somewhere i belong
Contact:

Re: Smart Bone Helpers by Ramón López

Post by gr33ndaybd »

thanks for this script
User avatar
Squeakydave
Posts: 328
Joined: Tue Aug 03, 2004 9:44 pm
Location: UK - London-ish
Contact:

Re: Smart Bone Helpers by Ramón López

Post by Squeakydave »

Thanks Ramon:
I seem to get tangled up with smartbones so this is a really handy script. It makes everything easier to find.
User avatar
Rai López
Posts: 2228
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Re: Smart Bone Helper Buttons by Ramón López (ASP9.0_2012092

Post by Rai López »

Well thanks again for the comments :), and... as I liked the multi-bone heyvern suggestion, I've been implementing it (it's still hot!) and here it is, meantime animestudioscripts.com (BTW, what a super-convenient place! :D) approves:
But... as I said it's very recent! And although everything seems to work as expected to me, just take it into account if you are immersed into something really serious, or simply pay some extra attention to any possible issue or "improvable" behavior, cause although (in general) I think almost all has some kind of sense taking into account the limitations (the only four buttons' and their limited functionality in this case), I'm all hears :)

Anyway... here are some quick tips about the new possibilities;
  • With ONLY one bone selected, I think nothing really relevant to deserve a mention has changed.

    If you select SEVERAL bones OTOH, pressing the Add Smart Bone button ensures ALL the selected bones has a Smart Bone #1, and pressing it again adds a Smart Bone #2 on every bone (if they still had a Smart Bone #1 as it'll be the case if you have just pressed it before). Well, really is more or less the same logic than previously, but maybe be better to try it by yourself and see it in action!

    The Remove Smart Bone Action/s button has been updated too, so now you can quickly manage multi Smart Bones deletion if necessary. Simply select several bones in Viewport and you'll be prompted with the options (yeah, I'd kill for another button there to "cancel", but that's simply not possible :().

And I think that's basically all... Well, hope it helps and greetings!
Ramón López.


PS: And BTW! I failed to mention it, but all the thanks must be to selgin too, as long as (if I remember well) he was the very first one suggesting some kind of buttons or helpers in order to improve the Smart Bones thing management: :idea:

EDIT: New version uploaded (ASP9.0_20120922) and linked above, just to solve a minor issue regarding "Remove Smart Bone Action/s" button status, nothing serious! But it should manage better all the situations now.
...
User avatar
neeters_guy
Posts: 1614
Joined: Mon Sep 14, 2009 7:33 pm
Contact:

Re: Smart Bone Helpers by Ramón López

Post by neeters_guy »

Thank you for sharing your intelligent scripting mind, Ramon! :)
Post Reply