How to use Python API in iClone 8/CC 4 to set facial expression weight?


https://forum.reallusion.com/Topic535206.aspx
Print Topic | Close Window

By _RESERVED__450081 - 2 Years Ago
I have tried using the following code, but I receive an error due to the expression weight being a read-only tuple:facial_component = avatar.GetFaceComponent()expression_weights = facial_component.GetExpressionWeights(clip_time, []) expression_weights[0] = 1 I have found many APIs to get the expression value, but none to edit the weight value. Since I need to modify this weight frequently, I cannot use the .ini config file or manually edit it. Can you suggest a Python API solution to set facial expression weight?https://forum.reallusion.com/uploads/images/b96c6d4e-1aa1-4fa3-8cb7-e11d.jpg