Sun, Dec 1, 4:25 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 29 7:57 am)



Subject: RML - "Read My Lips" - Python Lip Sync Script - BETA - in Free Stuff Utilities


underdog ( ) posted Mon, 24 June 2002 at 11:31 PM · edited Sun, 01 December 2024 at 4:23 PM

Attached Link: http://www.fantasy3d.com

Please check out the RML.zip file, available in the Free Stuff section under Poser Utilities. It's the text based lip sync program I put out on http://www.fantasy3d.com/phon a looongg time ago. I have converted it to Python/Tkinter and made it so that if you have the Pro Pack you can run it from within Poser or if you DON'T have the Pro Pack (*yet*) you can download Python and still run the script. NOTE: THIS IS IN BETA! I need help (especially from MAC users) debugging this! THANKS! ===Underdog===


doerp ( ) posted Tue, 25 June 2002 at 8:18 AM

Hi Underdog, thanks for sharing your script. I am a Mac user and I receive following error message: Traceback (innermost last): File "", line 535, in ? File "", line 467, in main File "", line 369, in initialize AttributeError: access BTW - I use Pro Pack and Mac OS 9.2 Any ideas? Thanks Sascha


underdog ( ) posted Tue, 25 June 2002 at 3:50 PM

I think that I have a fix for this, but as luck would have it, my Time Warner Roadrunner connection to my server just up and died this morning. I will have a new version of the RML.zip file soon and I'll post it back here. Thanks for helping me debug this on a Mac. Was anyone else able to download the script (before 10:30 am central time) and run it on a PC successfully?


c1rcle ( ) posted Tue, 25 June 2002 at 4:00 PM

I got it but I haven't tried it yet, I'll give it a go right now, 2 minutes later, ok is it meant for standard characters or millenium? it works just by running it from the run script option as well. Rob


lynnJonathan ( ) posted Tue, 25 June 2002 at 4:27 PM

I cant get the web page to work. Love to check it out though. I'll try again later.


Dave ( ) posted Tue, 25 June 2002 at 5:03 PM

From our discussion earlier, underdog, I'm trying to run the version that doesnt require ProPack. I did as you told me and went to www.python.org. I got what I thought was needed, installed. I cant get the script to run. Went and got Tcl/Tk and got a little further. Still cant get the script to run. What else am I missing? Dave


underdog ( ) posted Tue, 25 June 2002 at 6:41 PM

Attached Link: http://www.fantasy3d.com/pfiles/python/RML.zip

Hmmmmmmmm. OK so let's see what I can answer from these replies. re: Traceback (innermost last):...AttributeError: access This seems to be a problem for Macs only. I think I have that fixed. Try the new version (link). I replaced the calls to "os.access()" with calls to "posixpath.isdir()". re: is it meant for standard characters or millenium? The script uses *.fc2 files found in the "templates" directory (provided with the script). These files have adjustments to these target geometries: "OpenLips", "Smile", "Frown", "Mouth O", "Mouth F", "Mouth M", "Tongue T", and "Tongue L". Any figures that don't have these channels won't be able to use this version of the program. I can see that I need to think about this a bit though. I need one that works for other figure types too, eh? re: I cant get the web page to work. My site is back up, so please try again (use the link attached to this message). re: Still cant get the script to run. What else am I missing? I am not sure what sort of errors you are seeing. Are you able to get other python scripts to run? Try going to a DOS prompt and entering these commands: ---> cd "C:Program FilesMetacreationsPoser 4RuntimePythonposerScriptsRML ---> python phon.py You will need to have PYTHON in your PATH or it won't find it. You might try something like "C:Python22python phon.py" instead... not sure without more information. THANKS FOR YOUR FEEDBACK! ===Underdog===


doerp ( ) posted Wed, 26 June 2002 at 3:43 AM

file_13846.jpg

Hi Underdog, new script, new error message. It seems that certain paths cannot be found (but I really dont have the slightest idea). Perhaps the screenshots help...

Thanks again

Sascha (Mac user)


underdog ( ) posted Wed, 26 June 2002 at 9:57 AM

the screenshots are GREAT! Thanks. I will get right on it.


c1rcle ( ) posted Wed, 26 June 2002 at 10:00 AM

I've seen mention of this problem before, it's something to do with the way macs and pcs set out the directory structure, bushi & PCBos both have a lot of knowledge of python maybe they can be persuaded to help out. Rob


underdog ( ) posted Wed, 26 June 2002 at 6:10 PM

I had anticipated this and had a variable track it but I had hoped that the posixpath would fix it. I am on it though and another version will be out later tonight.


underdog ( ) posted Wed, 26 June 2002 at 6:34 PM

Attached Link: http://www.fantasy3d.com/pfiles/python/RML.zip

OK! I think I have a version that will survive various differences in file paths across computers and also one that if you RUN it from the RML directory is changes UP four directory levels to the "Poser 4" main directory. That was part of the problem. I didn't realize that if I try to let folks run this directly, it doesn't start at the right spot. I have tested it in both Poser 4 Pro and also at the MS-DOS command line. So if there is anyone out there that want's to give this another go, let's see if it works this time! ===Underdog===


lynnJonathan ( ) posted Wed, 26 June 2002 at 11:36 PM

Well, I got to work fine. But it only works from text. The poser character said 4 words in 20 frames. Less then a second. Plus it doeasnt work with audio files. It's a very cool script but I'm not sure what its use would be?


doerp ( ) posted Thu, 27 June 2002 at 4:27 AM

file_13847.jpg

Hi Underdog, news from the Mac front: I think you nearly got it! At least I can open the script in Poser Pro and type in/translate my phrase. The error message happens right after hitting the button to convert it into fc2. Here is another screenshot. I markered a possible error (but again: I dont have the slightest idea).

Thanks

Sascha


underdog ( ) posted Thu, 27 June 2002 at 9:07 AM

Attached Link: http://www.fantasy3d.com/pfiles/python/RML.zip

Argh. I don't like the way Python deals with global variables. Since I didn't declare the DIRCH to be global, it reverted BACK to the "" when I left the initialize function.. Actually, other than some stuff like that, python turns out to be pretty cool. I may have to really learn it! OKAY! This version has that bug fixed AND one reported in an email where the Rules variable was mysteriously out of scope.


doerp ( ) posted Thu, 27 June 2002 at 9:36 AM

file_13848.jpg

Im so sorry, but now I receive other strange messages...

...sigh

Mac-Sascha


bikermouse ( ) posted Thu, 27 June 2002 at 10:22 AM

I tried the second version (6/26). worked ok on p4/1.6g/512/xp. noted that later on one of my files was listed in japanese in the programs menu. I think that this was due to the fact that I forgot to close an "IDLE" window though and probably not a bug with your program. (might also have to do with globals as you stated) hey this is great - although I suspect that the phenomes interface still needs work as to the shapes of the individual "mouthings". - keep at it underdog.


underdog ( ) posted Thu, 27 June 2002 at 11:24 AM

Sascha, Hey, no need to apologize! I am thrilled you are willing to continue to help me debug this on Macs. It's pretty tough for me without physical access to a Mac. I still believe these are problems that can be solved. I guess my hope of changing directories up four levels to support folks that started OUT in the RML directory didn't work. Hmmm. Also, I am not clear yet why the "filetypes" option isn't supported on the python for mac but is on the windoze version. But, I will still prevail. If you are willing to keep testing it, I am willing to keep hacking away at it. :-D Stay tuned for another patch... ===Underdog===


underdog ( ) posted Thu, 27 June 2002 at 11:27 AM

bikermouse, You are absolutely right, the phonemes need some serious work. For example, the "b" shape kind of puckers up the mouth too much. It should be more flat and wide. And frankly this may NEVER be a perfect solution, since the translation from english to phonemes is also not always right, but it gets you a long ways there, I hope. I will turn my guns on the phoneme shapes after I get the more serious bugs out of the way. ===Underdog===


underdog ( ) posted Thu, 27 June 2002 at 11:49 AM

Attached Link: http://http://www.fantasy3d.com/pfiles/python/RML.zip

OK, we are now on RML version 0.4b and here's what I just did. I removed the "-filetypes" option from the save dialog box (I don't think I really needed it, just fluff), and I am using an alternative strategy for changing up to the Poser home directory. Rather than "..:..:..:.." or "........" I am just stripping off the four levels and changing to the absolute directory... Got my fingers crossed on this one (hard to type). THANKS AGAIN, ===Underdog===


underdog ( ) posted Thu, 27 June 2002 at 11:52 AM

BTW, bikermouse, that "files listed in japanese" issue has me mystified. Any further ideas on where that one came from? I want to make sure, of course, that I haven't corrupted someone's files somehow - not that I can imagine a way for me to do that, but ya never know.. ===Underdog===


underdog ( ) posted Thu, 27 June 2002 at 12:15 PM

Attached Link: http://http://www.fantasy3d.com/pfiles/python/RML.zip

One other note: I updated the readme file (dave's suggestion) adding docs on how to get rid of the annoying dos window when running it standalone on windows. I ALSO added a THANKS section and if I missed anyone please LET ME KNOW. ===Underdog====


underdog ( ) posted Thu, 27 June 2002 at 1:41 PM

Attached Link: http://www.fantasy3d.com/pfiles/python/RML.zip

yowtch! sorry for the silly link - in case someone can't figure it out I added an extra http:// on it... DOH!


c1rcle ( ) posted Thu, 27 June 2002 at 1:48 PM

I d/l the latest version earlier and it works on my pc with no errors at all, thanks for the mention in the readme :) the japanese thing has happened to me before it's usually a problem with the fonts, windows sometimes loads the wrong font and everything goes weird, used to happen to me a lot with win98, not seen it since swapping to xp, but then I've only had xp since feb. Rob


scaramouche ( ) posted Thu, 27 June 2002 at 2:39 PM

I haven't read anything to this effect yet but here's just my $.02US for the Mac beta testers out there: When we were beta testing LipSinc's Mimic for Macintosh, they informed us that you could not exceed a 64 character path name for either their Mimic or Curious Labs' Poser products. As soon as I moved the Mimic folder to either the Desktop or to a higher level on the hard drive, all file access problems by Mimic and/or Poser disappeared.


underdog ( ) posted Thu, 27 June 2002 at 3:12 PM

Thanks for the information, scaramouche. I am not sure how to deal with it yet, as I really was hoping to have a single version of this script on both architectures, and I don't want to make folks move stuff around on their drive. Well, at least I have a clue now as to what direction to go next.


underdog ( ) posted Thu, 27 June 2002 at 3:39 PM

rereading this page I noticed lynnJonathan's post with two points that I failed to address: 1. "The poser character said 4 words in 20 frames..." - The code right now does have the framespacing hardcoded but that needs to change for the release. I will add a field to allow you to adjust framerate. That won't entirely solve things, since some phonemes might need fewer frames than others, but it's a start. For now you can stretch out the frames using the Animation->Retime Animation command in poser. 2. "...it doeasnt work with audio files. It's a very cool script but I'm not sure what its use would be?" - It's true that RML does not parse audio files to determine mouth shapes, but it might be that the phonetic approach will more accurate at determining which mouth shape to use for an existing speech audio track. But... since I am rather closely involved in writing this program, it would be up to someone else to give a thumbs up or down on whether or not it's actually useful. :)


doerp ( ) posted Thu, 27 June 2002 at 5:19 PM

Hey Underdog, Congrats: it works fine now! And now how about a german version (just kiddin)? Thank you. If you need another "Mac-feedback" just IM me! I would be glad to help you. Its a great script and Im looking forward to work with it! Keep up your great work! Sascha


underdog ( ) posted Thu, 27 June 2002 at 6:15 PM

file_13849.jpg

Yay (never know how to spell that word)! I am actually just getting started on this script it would seem. Dave (I think it was Dave) suggested expressions and I already promised a frame spacing change. I also think I have a workaround for the 64 char limit on Mac pathnames. I am hoping I can use RELATIVE paths instead of ABSOLUTE ones.. We'll see (well I won't see 'cause I don't have a Mac but Ahmed (another person helping me) will probably be able to reproduce the bug and help me fix it). Here's a prototype of the RML 0.5b control panel (it's not written in Python/Tkinter yet, so the layout may change a lot). Any Comments? I am also going to post the control panel concept to a new thread since this one is getting lengthy and is starting to evolve into a different subject. Thanks to all that helped get it working thus far... ===Underdog===


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.