Smart Bone Helpers by Ramón López

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

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

Smart Bone Helpers by Ramón López

Postby funksmaname » Fri Sep 14, 2012 7:17 am

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
funksmaname
 
Posts: 3101
Joined: Tue May 29, 2007 11:31 am
Location: Nelson, New Zealand

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

Postby ulrik » Fri Sep 14, 2012 7:38 am

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

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

Postby ulrik » Fri Sep 14, 2012 10:50 am

I just changes the shortcut for rl_smart_bones_add M to - instead since M is assigned to LM's Transform Layer Tool
ulrik
 
Posts: 1061
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden

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

Postby funksmaname » Fri Sep 14, 2012 11:11 am

Usually that is on 1... Did u change it sometime?
User avatar
funksmaname
 
Posts: 3101
Joined: Tue May 29, 2007 11:31 am
Location: Nelson, New Zealand

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

Postby freecartman™ » Fri Sep 14, 2012 11:33 am

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
freecartman™
 
Posts: 19
Joined: Thu Jul 29, 2010 10:15 pm

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

Postby ulrik » Fri Sep 14, 2012 12:01 pm

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
ulrik
 
Posts: 1061
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden

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

Postby ulrik » Fri Sep 14, 2012 12:02 pm

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
ulrik
 
Posts: 1061
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden

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

Postby heyvern » Fri Sep 14, 2012 7:12 pm

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
heyvern
 
Posts: 6964
Joined: Fri Sep 02, 2005 4:49 am

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

Postby Ramón López » Fri Sep 14, 2012 9:20 pm

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 :)
♪♫♬ Y si no puedes estar (animando) con el programa que amas
Ama el programa con el que estás (animando)
♪♫♬
User avatar
Ramón López
 
Posts: 1799
Joined: Sun Aug 08, 2004 1:41 pm
Location: Elda! Again...

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

Postby DK » Sat Sep 15, 2012 10:13 am

Thanks Ramon.
This is absolutely brilliantly time saving!

Cheers
D.K
User avatar
DK
 
Posts: 2266
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

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

Postby Lukas » Sat Sep 15, 2012 12:21 pm

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
Lukas
 
Posts: 718
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands

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

Postby gr33ndaybd » Mon Sep 17, 2012 6:10 am

thanks for this script
User avatar
gr33ndaybd
 
Posts: 11
Joined: Wed Aug 03, 2011 9:22 am
Location: somewhere i belong

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

Postby Squeakydave » Tue Sep 18, 2012 10:28 pm

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
Squeakydave
 
Posts: 310
Joined: Tue Aug 03, 2004 9:44 pm
Location: UK - London-ish

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

Postby Ramón López » Fri Sep 21, 2012 4:08 am

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.
♪♫♬ Y si no puedes estar (animando) con el programa que amas
Ama el programa con el que estás (animando)
♪♫♬
User avatar
Ramón López
 
Posts: 1799
Joined: Sun Aug 08, 2004 1:41 pm
Location: Elda! Again...

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

Postby neeters_guy » Tue Sep 25, 2012 8:17 pm

Thank you for sharing your intelligent scripting mind, Ramon! :)
User avatar
neeters_guy
 
Posts: 1516
Joined: Mon Sep 14, 2009 7:33 pm

Next

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest