Quote:
Originally Posted by pradeep
This action of angry is not working can you tell where my code went wrong please
angry=vizact.morph(ANGRY,1,0.1)
neutral=vizact.morph(ANGRY,0,0.1)
action=vizact.sequence(wait_blink,angry,viz.FOREVE R)
face.addAction(action)
|
Two mistakes:
- The value of ANGRY is 'smile1', which is not a valid morph for your face, 'smile_1' however is. You can also use index numbers, in which case your angry morph target has index 2, and your smile morph target index 3 (based on the list you provided in your first post).
- the sequence should include both morphs, so action=vizact.sequence(wait_blink,angry,neutral,vi z.FOREVER). You probably need to change the parameter 0.1 to a higher value, to decrease the speed of the change (this speed is good for eye-blinking, but may not be suited for other morphs.
For more information, read
http://docs.worldviz.com/vizard/p_us..._in_vizard.htm and
http://docs.worldviz.com/vizard/comm...ct/morphTo.htm.