.dat file works for Switch Layers, Not for LipSync Actions
Posted: Sun Oct 28, 2018 5:45 pm
Hi, I'm trying to use the script "LipSyncWithActions". Link to .lua file below.
Running the script allows you to automate the process of copying keyframes from actions onto the main timeline. It is designed to work with .dat files generated from Papagayo, which contain a 2-column list: frame number, switch layer name. Instead of adding keyframes to switch layers, the script will copy the keyframe data from the action that is named identically to the switch layer name data.
This script worked perfectly as soon as I tried it. However, now I have run into a number of .dat files that give the error message "Not a proper switch data file". These same .dat files will work as expected when used as ordinary switch data files.
Other .dat files seem to work fine. I have one .dat file that the Script will load without the error message, but only copies a few of the action keyframes instead of all of them. For the life of me, I can't figure out what is different about the working / non-working .dat files.
Also, and I don't know if this is related or not, I keep getting a keyframe channel labeled "Eyebrow L" that appears on the left side of the timeline, no matter which layer is selected. There is a layer named "Eyebrow L", but why should it appear on the timeline when a different layer is selected?
Here is a link to the .lua file, 2 .dat files and 2 Moho Files with Head Rigs - one set up with actions, the other with switch layers. They both employ a custom set of names. Both .dat files work for me in "Head Rig With Switch Layers", but the one gives error message when using "Head Rig With Actions" and trying to run the script.
https://www.dropbox.com/sh/iyqyh1wugnzz ... XJPva?dl=0
Thanks for any help. Maybe it's pilot error? Maybe there is something slightly incompatible between this older script and Moho 12?
Running the script allows you to automate the process of copying keyframes from actions onto the main timeline. It is designed to work with .dat files generated from Papagayo, which contain a 2-column list: frame number, switch layer name. Instead of adding keyframes to switch layers, the script will copy the keyframe data from the action that is named identically to the switch layer name data.
This script worked perfectly as soon as I tried it. However, now I have run into a number of .dat files that give the error message "Not a proper switch data file". These same .dat files will work as expected when used as ordinary switch data files.
Other .dat files seem to work fine. I have one .dat file that the Script will load without the error message, but only copies a few of the action keyframes instead of all of them. For the life of me, I can't figure out what is different about the working / non-working .dat files.
Also, and I don't know if this is related or not, I keep getting a keyframe channel labeled "Eyebrow L" that appears on the left side of the timeline, no matter which layer is selected. There is a layer named "Eyebrow L", but why should it appear on the timeline when a different layer is selected?
Here is a link to the .lua file, 2 .dat files and 2 Moho Files with Head Rigs - one set up with actions, the other with switch layers. They both employ a custom set of names. Both .dat files work for me in "Head Rig With Switch Layers", but the one gives error message when using "Head Rig With Actions" and trying to run the script.
https://www.dropbox.com/sh/iyqyh1wugnzz ... XJPva?dl=0
Thanks for any help. Maybe it's pilot error? Maybe there is something slightly incompatible between this older script and Moho 12?