@r_gigante said in Viseme RIG test:
With regard to the issue reported, it looks to me like some sorting of unwanted data-clamping effect due to type casting. To be more helpful please provide your code snippet ( or a complete test asset) in order to dig further.
Hi Ricardo,
Thank you for your answer.
I've a little bit improved my xpresso nodes, simple but efficient !
The viseme are controlled in a boolean way = step key frame.
With controlling the global intensity of the pose morph tag,
i can have more interpolation of the lips movement between the viseme step keys frames.
Mouth rig test_animatic
How to improved python code in order to have viseme linear key frames ?
Thanks
Best regards
Gal
This is my simple python code :
import c4d
#Welcome to the world of Python
def main():
global Output1, Output2, Output3, Output4, Output5, Output6, Output7, Output8, Output9, Output10, Output11
if Input1 == "":
Output1 = 0
Output2 = 0
Output3 = 0
Output4 = 0
Output5 = 0
Output6 = 0
Output7 = 0
Output8 = 0
Output9 = 0
Output10 = 0
Output11 = 0
if Input1 == "E":
Output1 = 1
Output2 = 0
Output3 = 0
Output4 = 0
Output5 = 0
Output6 = 0
Output7 = 0
Output8 = 0
Output9 = 0
Output10 = 0
Output11 = 0
if Input1 == "A":
Output1 = 0.8
Output2 = 0
Output3 = 0
Output4 = 0.8
Output5 = 0
Output6 = 0
Output7 = 0
Output8 = 0
Output9 = 0
Output10 = 0.5
Output11 = 0.5
if Input1 == "I":
Output1 = 0
Output2 = 0
Output3 = 0
Output4 = 1
Output5 = 0
Output6 = 1
Output7 = 1
Output8 = 0
Output9 = 0
Output10 = 0.5
Output11 = 0.5
if Input1 == "U":
Output1 = 0.8
Output2 = 0
Output3 = 0
Output4 = 0
Output5 = 0
Output6 = 0
Output7 = 0
Output8 = 1
Output9 = 1
Output10 = 0
Output11 = 0
if Input1 == "R":
Output1 = 0.5
Output2 = 0
Output3 = 0
Output4 = 1
Output5 = 0
Output6 = -0.5
Output7 = -0.5
Output8 = 1
Output9 = 1
Output10 = 0.5
Output11 = 0.5
if Input1 == "O":
Output1 = 0.9
Output2 = 0
Output3 = 0
Output4 = 0
Output5 = 0
Output6 = 0
Output7 = 0
Output8 = 0.4
Output9 = 0.4
Output10 = -0.3
Output11 = -0.3
if Input1 == "CH":
Output1 = 0.2
Output2 = 0
Output3 = 0
Output4 = 0.35
Output5 = 0
Output6 = 0.5
Output7 = 0.5
Output8 = 0
Output9 = 0
Output10 = 0.6
Output11 = 0.6
if Input1 == "S":
Output1 = 0.1
Output2 = 0
Output3 = 0
Output4 = 0.41
Output5 = 0.2
Output6 = 1
Output7 = 1
Output8 = 1
Output9 = 1
Output10 = 1
Output11 = 1
if Input1 == "M":
Output1 = 0
Output2 = 0
Output3 = 0
Output4 = 0.1
Output5 = 0.3
Output6 = 0.6
Output7 = 0.6
Output8 = 0.85
Output9 = 0.85
Output10 = 0.4
Output11 = 0.4
if Input1 == "D":
Output1 = 0.05
Output2 = 0
Output3 = 0
Output4 = 0.3
Output5 = 0.2
Output6 = 0.8
Output7 = 0.8
Output8 = 0.85
Output9 = 0.85
Output10 = 0.2
Output11 = 0.2
if Input1 == "F":
Output1 = 0.05
Output2 = 0
Output3 = 0
Output4 = 0
Output5 = 0.2
Output6 = 0.8
Output7 = 0.8
Output8 = 0.5
Output9 = 0.5
Output10 = 0
Output11 = 0
if Input1 == "L":
Output1 = 0.6
Output2 = 1
Output3 = 0
Output4 = 0.2
Output5 = 0
Output6 = 0.8
Output7 = 0.8
Output8 = 0.5
Output9 = 0.5
Output10 = 0
Output11 = 0