joaen / maya-auto-lip-sync

A tool to automatically generate lip sync animations in Autodesk: Maya using Montreal Forced Aligner.
MIT License
29 stars 6 forks source link

Tool doesn't work #12

Open Swaggymcmuffins opened 10 months ago

Swaggymcmuffins commented 10 months ago

Hi all, I'm hoping someone could shed some light on my issue with this tool. I got as far as creating all of the files needed for the tool to theoretically work, and in theory it does work, just not fully. It imports the audio file onto the timeline, but does not create any keyframes with it, despite everything being "connected" to the right areas. I will try to add a short clip of this, if anyone has any idea what I may have done wrong, please do let me know as I really want/ need this tool to do its thing.

TIA -Pabs[

https://github.com/joaen/maya-auto-lip-sync/assets/47432333/9adc38a0-5b84-4185-a720-33782b2854c8

](url)

joaen commented 10 months ago

Hi! Can you please share the error log from the Maya script editor?

Swaggymcmuffins commented 10 months ago

Of course! I do apologise I should have added it in the post, but here it is;

b"'mfa_align.exe' is not recognized as an internal or external command,\r\n" b'operable program or batch file.\r\n'

Traceback (most recent call last):

File "", line 323, in generate_animation

File "", line 374, in create_keyframes

File "C:\Users/swagg/Documents/maya/2023/scripts\textgrid\textgrid.py", line 807, in fromFile

tg.read(f)

File "C:\Users/swagg/Documents/maya/2023/scripts\textgrid\textgrid.py", line 698, in read

encoding = detectEncoding(f)

File "C:\Users/swagg/Documents/maya/2023/scripts\textgrid\textgrid.py", line 87, in detectEncoding

with codecs.open(f, 'r', encoding='utf-16') as source:

File "D:\AutoDesk/Maya2023\Python\lib\codecs.py", line 905, in open

file = builtins.open(filename, mode, buffering)

FileNotFoundError: [Errno 2] No such file or directory: ''

Swaggymcmuffins commented 10 months ago

b"'mfa_align.exe' is not recognized as an internal or external command,\r\n" b'operable program or batch file.\r\n' Traceback (most recent call last): File "", line 323, in generate_animation File "", line 374, in create_keyframes File "C:\Users/swagg/Documents/maya/2023/scripts\textgrid\textgrid.py", line 807, in fromFile tg.read(f) "C:\Users/swagg/Documents/maya/2023/scripts\textgrid\textgrid.py", line 698, in read encoding = detectEncoding(f) File "C:\Users/swagg/Documents/maya/2023/scripts\textgrid\textgrid.py", line 87, in detectEncoding with codecs.open(f, 'r', encoding='utf-16') as source: File "D:\AutoDesk/Maya2023\Python\lib\codecs.py", line 905, in open file = builtins.open(filename, mode, buffering) FileNotFoundError: [Errno 2] No such file or directory: ''

without the hashes^

adamgravois commented 10 months ago

Did you install the other scripts as shown in https://github.com/joaen/maya-auto-lip-sync#dependencies ? "'mfa_align.exe' is not recognized as an internal or external command" means it cant find the Montreal Forced Aligner tool. The script needs that and TextGrid and the lexicon ... fortunately (hopefully) these are a one-click install

Ranch-bot commented 10 months ago

I have the same issue. I've installed other files manually and then tried bat. Getting the same script error

Swaggymcmuffins commented 10 months ago

Did you install the other scripts as shown in https://github.com/joaen/maya-auto-lip-sync#dependencies ? "'mfa_align.exe' is not recognized as an internal or external command" means it cant find the Montreal Forced Aligner tool. The script needs that and TextGrid and the lexicon ... fortunately (hopefully) these are a one-click install

I did yeah, tried both manual as well as the automatic one that is supplied in the files, had a more tech savvy with Maya person check them out as well and he said the referenced files are all there so he doesn't know why it wouldn't work.

adamgravois commented 10 months ago

Huh. why won't it see the .exe? Weird.

Some more checklist-type questions: What version of Maya are you running? I'm using 2022.4 is this what your documents/maya/202x/scripts directory looks like?

image image
Swaggymcmuffins commented 10 months ago

image_2023-11-28_103123298 Screenshot 2023-11-28 103056

I'm using maya 2023.3, I've attached my screengrabs as well, they seem to be matching yours, I hope that helps!

adamgravois commented 10 months ago

sorry I'm out of suggestions. maybe its a path or permissions problem? This is the point where I start flailing 😅