Automatic bone layer

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
amanandink
Posts: 252
Joined: Wed Feb 13, 2008 10:28 pm
Location: Kilkenny, Ireland
Contact:

Automatic bone layer

Post by amanandink »

Hey does anyone know of a script or process to create an automaticaly create bone layer for an image layer. So if I have a bunch of image layers the script will create a bone layer for each image layer and name it the same as the image layer is named.

thanks
Jeremy
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Re: Automatic bone layer

Post by jahnocli »

You could try on the 'other forum' - http://www.animatorsforum.com/
Mike Kelley has done some work automating the creation of rigged characters; he may be able to help...
You can't have everything. Where would you put it?
Breinmeester
Posts: 303
Joined: Thu May 13, 2010 2:01 pm

Re: Automatic bone layer

Post by Breinmeester »

That doesn't sound to hard to code, Jeremy. Can you be a little bit more specific on how it should work? I think i'd be able to build that in a short time.
amanandink
Posts: 252
Joined: Wed Feb 13, 2008 10:28 pm
Location: Kilkenny, Ireland
Contact:

Re: Automatic bone layer

Post by amanandink »

That would be great B

basically we export psd from photoshop for rigging in asp and i get something like this example

Image
Image

which has all the layers as separate pngs
then I have to rig each one with a bone layer and have the png inside it like this

Image
Image

I spend so much time doing each one individually, it would be great to save time creating each bone layer and naming them
thanks
J
User avatar
Víctor Paredes
Site Admin
Posts: 5660
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: Automatic bone layer

Post by Víctor Paredes »

amanandink wrote:I spend so much time doing each one individually, it would be great to save time creating each bone layer and naming them
Why would you want that? Do you really need a separate "rig" for each little part of the image? Sorry, but there's something I can't understand. You could perfectly rig all that using only one bone layer (maybe 2 or 3, if you want to separate some stuff), but, to me, one bone layer for each image layer looks excessive and extremely hard to work with.
Image Image Image Image
Moho Product Manager

www.mohoanimation.com
Rigged animation supervisor in My father's dragon - Lead Moho artist in Wolfwalkers - Cartoon Saloon - My personal Youtube Channel
User avatar
synthsin75
Posts: 9972
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Automatic bone layer

Post by synthsin75 »

I agree with Selgin. Since you can now "Use selected bones for flexibinding", you can isolate each image to only be warped by specific bones in a single bone layer. I can't imaging switching layers that much while animating.

That said, such a script would be easy to write, but I would highly advise you to reevaluate your workflow in this case. You may very well find that you don't need such a script and that animating goes much easier and more efficient.
amanandink
Posts: 252
Joined: Wed Feb 13, 2008 10:28 pm
Location: Kilkenny, Ireland
Contact:

Re: Automatic bone layer

Post by amanandink »

Maybe you guys are right, we should try as little bones layers as possible, to be honest its not usually this divided, this is the extreme I was using for an example, but we intentionally split it to this extreme as the animator is only getting used to ASP and had trouble keeping track of her keys when there was multiples on a timeline, so we split it for her to make it as easy to see whats on each layer.

J
User avatar
synthsin75
Posts: 9972
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Automatic bone layer

Post by synthsin75 »

I would suggest using colored keyframes and bones to help her keep track of what keyframes relate to what bones.
User avatar
Víctor Paredes
Site Admin
Posts: 5660
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: Automatic bone layer

Post by Víctor Paredes »

synthsin75 wrote:I would suggest using colored keyframes and bones to help her keep track of what keyframes relate to what bones.
Also, hide and set shy bones are a huge help.
Image Image Image Image
Moho Product Manager

www.mohoanimation.com
Rigged animation supervisor in My father's dragon - Lead Moho artist in Wolfwalkers - Cartoon Saloon - My personal Youtube Channel
amanandink
Posts: 252
Joined: Wed Feb 13, 2008 10:28 pm
Location: Kilkenny, Ireland
Contact:

Re: Automatic bone layer

Post by amanandink »

I remember using a bone group script once, way back before coloured bones, having the ability to group bones and later select and hide them would be useful for this kind of setup, when there are so many bones. does anyone know if such a thing exists?

j
Breinmeester
Posts: 303
Joined: Thu May 13, 2010 2:01 pm

Re: Automatic bone layer

Post by Breinmeester »

Hi Jeremy,

I tend to agree with the rest that it's better to have all the bones for these elements in one layer. It makes it a lot easier to edit the animation without losing oversight in the heap of different layers. Also, while Bone Groups is not a bad idea that i've been asking for myself, i think you're better off with using different colour bones because these all have their own channels in the timeline. That way it's very easy to see what animates at what point in time. That makes it much easier to edit timing.

If you still need the script, i think i could easily code it.
Post Reply