Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by wesleywh · Feb 16, 2017 at 02:04 AM · errorblendershapelipsync

Cheshire Lip Sync Index out of range error

I am using Cheshire lip sync tool to generate my animations. I have my shape keys on my character (from blender) but I get an error while trying to generate the animations.

alt text

After I click "Create Animation" it returns the following error at me:

IndexOutOfRangeException: Array index is out of range.

I have some negative values in my shape keys could that be an issue? Example in blender for my shape key I set the min to -1 and the max to 0 to get the right look. Is there anything else I should be aware of?

capture.png (12.3 kB)
Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hexagonius · Feb 16, 2017 at 11:19 PM 0
Share

you should ask the developers, because this knowledge sounds pretty specific to me.

avatar image wesleywh hexagonius · Feb 18, 2017 at 06:04 PM 0
Share

Hey thanks for this. So I actually tried to do what you suggested to but the developer doesn't seem to provide good contact info. So I ended up tracking him down on a forum which actually chained to a few different answers I needed, so thanks for the suggestion!

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by wesleywh · Feb 18, 2017 at 06:01 PM

So I did a LOT of digging. There were a series of issues here.

  1. To resolve the

    Index out of range error

problem you need to add the a single line of code to his "CheshireCreate.cs" code. It's around line 112 (i tried to add some surrounding code to make this easier to find):

 .....
 if(freshSymbols[i] == "rest") {
     continue;
 }
 else {
     if(_targetCat.GetAdjustedBlend(freshSymbols[i])<0) { //insert this check to fix indexoutofbounds error
         continue;
     }
     if(freshTimings[i] == 0.0f) {
         Keyframe freshFrame = new Keyframe(0.0f, modelAnimStrength, 0.0f, 0.0f);
         freshFrame.tangentMode = 0;
                             processCurves[_targetCat.GetAdjustedBlend(freshSymbols[i])].AddKey(freshFrame);
                             //processCurves[_targetCat.GetAdjustedBlend(freshSymbols[i])].AddKey(
     }
     if(freshTimings[i] - leadTime <= 0.0f) {
         Keyframe freshFrame = new Keyframe(0.0f, modelAnimStrength, 0.0f, 0.0f);
         freshFrame.tangentMode = 0;
                             processCurves[_targetCat.GetAdjustedBlend(freshSymbols[i])].AddKey(freshFrame);
     }
  ....

  1. Then the other issue was aparently the default encoding done on the wav files exported from audacity is not one that is recognized by Cheshire.exe. I had to get an example .wav file and test it out to find this one... (16bit wav will work but the 32bit wav will not)

  2. To make this compatable with Unity 5 follow the instructions found in the comment about it on the asset store page: https://www.assetstore.unity3d.com/en/#!/content/18746

  3. Also to use blender to make compatable blend shapes follow my other found results here: http://answers.unity3d.com/questions/1309340/makehuman-blender-visemes-to-unity-for-lip-sync.html#answer-1313968

  4. Finally since the developers website is down and that was the only place to get the windows application to make the lip sync timings you can download it from here. Look in the youtube description for the download link to a .rar file: https://www.youtube.com/watch?v=UZ7buppKOvM

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

119 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I change the shape scale in the Particle System via script? 1 Answer

Datail object from blender reads wrong axis in unity 0 Answers

Blender to Unity - Normals just fine in Blender, but Screwed up in Unity 2 Answers

Makehuman, Blender visemes to unity for lip sync 1 Answer

warning CS0414: The private field `GameManagerSingleton.text' is assigned but its value is never used 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges