Moho BVH Import & Animation script tool

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

Moderators: Víctor Paredes, Belgarath, slowtiger

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

Moho BVH Import & Animation script tool

Post by SimplSam »

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.
Moho 14.1 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.1 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
User avatar
DK
Posts: 2849
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Re: Moho BVH Import & Animation script tool

Post by DK »

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
Site Admin
Posts: 5646
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: Moho BVH Import & Animation script tool

Post by Víctor Paredes »

This is amazing. I will take a look with calm once I have the time.
Thank you very much for creating and sharing it!
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: 9934
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Moho BVH Import & Animation script tool

Post by synthsin75 »

Awesome work, Sam.
F.M.
Posts: 497
Joined: Thu Nov 04, 2004 4:29 pm
Location: Between my ears

Re: Moho BVH Import & Animation script tool

Post by F.M. »

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

Re: Moho BVH Import & Animation script tool

Post by jahnocli »

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 »

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: 9191
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Moho BVH Import & Animation script tool

Post by Greenlaw »

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.
User avatar
onurbeiren
Posts: 7
Joined: Sun Dec 07, 2014 11:22 pm
Location: Brazil
Contact:

Re: Moho BVH Import & Animation script tool

Post by onurbeiren »

It's a great script tools, maybe the moho, have eyes for this powerful script, add in the future. :mrgreen:
:arrow: :arrow: Image :!: - :idea:
https://www.youtube.com/user/animadorporacaso
Creator of the first Group Brazilian Anime Studio(Moho Pro 12): https://www.facebook.com/groups/998442436875703/
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: Moho BVH Import & Animation script tool

Post by chucky »

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
User avatar
SimplSam
Posts: 1033
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Moho BVH Import & Animation script tool

Post by SimplSam »

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.
Moho 14.1 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.1 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: Moho BVH Import & Animation script tool

Post by chucky »

- 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.
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: Moho BVH Import & Animation script tool

Post by chucky »

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?
User avatar
dueyftw
Posts: 2174
Joined: Thu Sep 14, 2006 10:32 am
Location: kingston NY
Contact:

Re: Moho BVH Import & Animation script tool

Post by dueyftw »

Very cool script. Thanks.

Dale
Post Reply