SS - Adobe Character Animator lip sync visemes keyframe importer

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: 1048
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

SS - Adobe Character Animator lip sync visemes keyframe importer

Post by SimplSam »

SimplSam's Ch Visemes Import tool allows you to import Adobe Character Animator Visemes (lip sync) keyframe data into Moho Switch Layers via the clipboard.

Features:

- Instantly grab Visemes lip sync data from the Clipboard; after Character Animator copy ["Copy Visemes for After Effects"] or copy from Text
- Adds/Updates timings of an existing Switch Layer to switch child-layers based on the timings of the Character Animator Viseme data

Below, the tool is applied to one of @Poptoogi's characters in Moho, which is also using Adobe compatible Mouth Visemes that he graciously provided on Gumtree: https://poptoogi.gumroad.com/l/UdYHG.

Image
Image
Image

How do I get set up ?

* To install:

- Download latest release: on GitHub: ss_ch_visemes_import.zip
- Save the 'ss_ch_visemes_import.lua' and 'ss_ch_visemes_import.png' files to your computer into your <custom>/scripts/tool folder (or under scripts/menu)
- Reload Moho scripts (or Restart Moho)

* To use:

- [Moho] Create/Import a Switch Layer with child layers named corresponding to: Neutral, Aa, D, Ee, F, L, M, Oh, R, S, Uh, W-Oo
- [Ch] "Copy Visemes for After Effects": In the Timeline panel, right-click a Lip Sync take > Copy Visemes for After Effects. further instructions at: Adobe Ch export, "Lip Sync: Take export for After Effects"
- [Moho] Ensure that the target Switch Layer is selected
- [Moho] Click this tool labelled "Import Ch Visemes keys" Image, which should now import the keyframe data and apply it to the selected Switch Layer.

Notes:

* Compatible/Tested with MH12+
* Optimized for MH12+
* Created in response to a request from: @madrobot

Special Thanks to:

* Stan (and the team): MOHO Scripting -- https://mohoscripting.com
* The friendly faces @ Lost Marble Moho forum -- https://www.lostmarble.com/forum/

Addendum:

Typical Character Animator keyframe data looks something like:

Code: Select all

Adobe After Effects 8.0 Keyframe Data

	Units Per Second	24
	Source Width	1920
	Source Height	1080
	Source Pixel Aspect Ratio	1
	Comp Pixel Aspect Ratio	1

Time Remap
	Frame	seconds
	0	0
	3.9967164	9
	8.6042164	1
	16.540216	2
	21.404216	10
	26.268216	11
	29.852216	0
	31.644716	2
	35.484216	9
	37.532216	2
	39.836216	10
	42.397216	3

End of Keyframe Data
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
alanthebox
Posts: 214
Joined: Sat Feb 03, 2018 5:31 pm
Contact:

Re: SS - Adobe Character Animator lip sync visemes keyframe importer

Post by alanthebox »

ooooo this sounds super cool! i liked using character animator for lip sync in the past, but didn't really like having thousands of PNG frames to deal with (especially with a vector character).
Post Reply