Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 fix flex driver #343

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jerry-harm
Copy link

@jerry-harm jerry-harm commented Dec 14, 2024

Generate the script and create drivers then add drivers to shape key:

I put all the create driver founctions in one founction and call it before add shape key.

Fix the naming problem in script which cause the fail of call driver:

Example of value in driver function was like Left_Smile = obj_data.flex_controllers["Smile"].value_left, but Smile was used in return expression. I found only value with CloseLid will have left and right in the front of name in return expression. So only keep right and left when there is Lid in the name.

Fix the nway function which is acctaully called in another way:

A real example

nway(multi_Smile,Smile,-11.0,-10.0,(-1.0, {0.0})))

but the nway function didn't handle the tuple, so I added a function overloading.

may related #142 #341 #197

I'm not an expert in source module, I just tested some random hwm downloaded from workshop, maybe I'm not handling the module in a right way, but now the flex controller should work.

Generate the script and create drivers then add drivers to shape key, fix the naming problem in script which case the fail of call driver, fix the nway function which is acctaully called in another way

related REDxEYE#142 REDxEYE#341 REDxEYE#197
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant