Below is the original post for v1.0 of this system.
A while ago I was confronted with a problem. I wanted to be able to use blink/lip-flap for my portraits, but quickly discovered this would lead to excessive amounts of code. I posted that there topic after struggling with the issue myself, and eventually got a reply. It's from there I worked slowly on getting the code to work for me.
Given I'm sure there are others that want this sort of thing, I worked on making the code Bryan Tsang provided into something that would work for others as well. Thus, a demo to show off this system.
- By specifying even just a single line, you can define a character portrait that will animate as required, instead of copying 20+ lines for every pose/image.
- Includes a text-beep effect that can vary between characters.
- Enables "introductory" animations and similar - short sequences that play when a character enters a pose.
- Stores portrait, eyes, and mouth, all in one file per pose.
The minimal, basic portrait code looks like this:
Code: Select all
image june idle = Portrait("june/idle.png", eyepos=(144, 192), moupos=(144,256), speaker="june")
Download and Credits
Demo Available Here, along with some more information about how to use this system. (At least I hope. I don't think I'm that good at explaining things.)
The demo expands on some other ways to use the script than what is mentioned here.
Credit would be appreciated, given to myself - as Tayruu or Taylor, and Bryan Tsang/@bvtsang.