Moho BVH Import & Animation script tool

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

Post Reply
User avatar
SimplSam
Posts: 122
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Moho BVH Import & Animation script tool

Post by SimplSam » Mon Apr 03, 2017 5:59 am

I have finally released the BVH Import & Animation script: ss_bvh_bones.lua

This script tool for Moho Pro 12 (and Anime Studio Pro 10/11) allows you to effortlessly import BVH motion capture data; and create editable 2D & 3D skelatal bone animations, which can be combined with existing 2D & 3D elements or further enhanced with Moho's feature-rich range of content and animation tools.

The script is available on GitHub (as a release):
Readme: https://github.com/SimplSam/moho-bvh-bones
Release: https://github.com/SimplSam/moho-bvh-bo ... _bones.zip

Have fun !


https://youtu.be/XebFOTAV8i4

BVH Data & Tools
SPECIAL THANKS to:
Last edited by SimplSam on Thu Apr 06, 2017 8:22 am, edited 2 times in total.
Sam @
Image
User avatar
DK
Posts: 2416
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Re: Moho BVH Import & Animation script tool

Post by DK » Mon Apr 03, 2017 6:47 am

Wow...thanks SimplSam. Can't wait to try it out.

Maybe you should have called it "Mohocap" :)

Cheers
D.K
User avatar
Víctor Paredes
Posts: 4874
Joined: Wed Jan 26, 2005 12:18 am
Location: Ireland/Chile
Contact:

Re: Moho BVH Import & Animation script tool

Post by Víctor Paredes » Mon Apr 03, 2017 1:26 pm

This is amazing. I will take a look with calm once I have the time.
Thank you very much for creating and sharing it!
Víctor Paredes
Former Moho Product Manager
Animator in Cartoon Saloon
My Youtube Channel - My webinars
F.M.
Posts: 478
Joined: Thu Nov 04, 2004 4:29 pm
Location: Between my ears

Re: Moho BVH Import & Animation script tool

Post by F.M. » Mon Apr 03, 2017 3:33 pm

Thank you for sharing!
"and then Man created god!"
User avatar
jahnocli
Posts: 3342
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Re: Moho BVH Import & Animation script tool

Post by jahnocli » Mon Apr 03, 2017 4:26 pm

Many thanks for this. I'm wrestling with the difference between 2D, 2.5D and 3D right now! Awesome!
You can't have everything. Where would you put it?
judgeworks
Posts: 1
Joined: Sun Aug 28, 2016 4:33 pm

Re: Moho BVH Import & Animation script tool

Post by judgeworks » Mon Apr 03, 2017 7:24 pm

this is wonderful. Am trying it out. Does anyone know how I can connect my image layers/artwork to the bvh derived bones in MOHO?
User avatar
Greenlaw
Posts: 4410
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Moho BVH Import & Animation script tool

Post by Greenlaw » Mon Apr 03, 2017 9:11 pm

That's pretty cool! Thanks for posting this script.

I have a mocap system at home that I use for visual fx work and for some of my cgi Brudders shorts, but I never thought the system could be useful for 2D cartoons. Will have to think of some ideas to try this with.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2019 Edtion
Lead Digital Animator, Dreamworks Animation

Image
onurbeiren
Posts: 3
Joined: Sun Dec 07, 2014 11:22 pm
Location: Brazil
Contact:

Re: Moho BVH Import & Animation script tool

Post by onurbeiren » Mon Apr 03, 2017 9:32 pm

It's a great script tools, maybe the moho, have eyes for this powerful script, add in the future. :mrgreen:
User avatar
chucky
Posts: 3922
Joined: Sun Jan 28, 2007 4:24 am
Location: Van Diemen's Land
Contact:

Re: Moho BVH Import & Animation script tool

Post by chucky » Tue Apr 04, 2017 12:13 pm

SimplSam , that is BRILLIANT, I have bee wanting this for years, here are a couple of old post to prove it, I was making do by tracking video which was very clumsy ( but better that rotoscoping the whole thing).
viewtopic.php?f=13&t=13580&start=15

viewtopic.php?f=3&t=28011&hilit=capture&start=15

viewtopic.php?f=18&t=22377&hilit=bvh.
I would certainly like to have a go with your script.
Two things I am wondering if you are thinking about.

:?: A two stage system , bring in the 3d, rotate the rig to the desired rotation/lens combo...
Then apply the 2d rig to match?

:?: Conform 2d bones to limb lengths of a an existing 2d rig... Does that makes sense? I don't know if I've communicated that well.

Amazing work SimplSam
Sequential offender.
my latest animations
User avatar
SimplSam
Posts: 122
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Moho BVH Import & Animation script tool

Post by SimplSam » Tue Apr 04, 2017 1:24 pm

Thanks for the feedback. Hope you all have fun experimenting.

Some answers...
judgeworks wrote:Does anyone know how I can connect my image layers/artwork to the bvh derived bones in MOHO?
- For the 2D Bones, you treat them as you would any Bone rig. Add you artwork as layers inside the Bone layer - and bind as necessary, adding corrections as needed.
- For the 3D Bones, you need to add your artwork inside the 'X' transformation group layer (i.e. alongside/in-place-of one or more 'D' draw layers), adding corrections as needed.
Greenlaw wrote:...I have a mocap system at home ... Will have to think of some ideas to try this with.
It will be good to see what people can come up with. I did acquire a pre-used MS Kinect, but haven't actually tried to mocap yet.
chucky wrote:Two things I am wondering if you are thinking about.
:?: A two stage system , bring in the 3d, rotate the rig to the desired rotation/lens combo...
Then apply the 2d rig to match?
:?: Conform 2d bones to limb lengths of a an existing 2d rig... Does that makes sense?
- It is theoretically possible to have the 2D Bones facing in another orientation. Also possible to remove the 3D Bones all together. But that requires some more play-time and head scratching.
- Matching an existing 2D Rig would be nice, but would need some method of identifying matching/non-matching limbs etc. Equally - there is nothing to stop you changing the lengths of the imported bones (manually) now. They are only set on Frame 0. After that (in all other frames) they only rotate of scale.
Sam @
Image
User avatar
chucky
Posts: 3922
Joined: Sun Jan 28, 2007 4:24 am
Location: Van Diemen's Land
Contact:

Re: Moho BVH Import & Animation script tool

Post by chucky » Wed Apr 05, 2017 4:59 am

- It is theoretically possible to have the 2D Bones facing in another orientation. Also possible to remove the 3D Bones all together. But that requires some more play-time and head scratching.
So when the rig is imported, how arbitrary is that?
Obviously one the great advantages of 3d capture is the independence from camera.
TO have to edit the bvh camera angles/edit outside Moho, that would add another step and interfere with a potentially super economic and creative production line.

Hmmm, head scratching indeed.
This script of yours has me really thinking.
Sequential offender.
my latest animations
User avatar
chucky
Posts: 3922
Joined: Sun Jan 28, 2007 4:24 am
Location: Van Diemen's Land
Contact:

Re: Moho BVH Import & Animation script tool

Post by chucky » Wed Apr 05, 2017 6:12 am

Hey I noticed that ipi has some sort of JSON based dll thingy ( I don't know about code :oops: ) 'bridge' between programs.
Does that mean it would be possible to take this type of data live to Moho using one or tow kinects and a souped up script?
Sequential offender.
my latest animations
dueyftw
Posts: 1941
Joined: Thu Sep 14, 2006 10:32 am
Location: kingston NY
Contact:

Re: Moho BVH Import & Animation script tool

Post by dueyftw » Tue Apr 11, 2017 2:02 am

Very cool script. Thanks.

Dale
Post Reply