![]() |
#2
|
|||
|
|||
face=avatar.face('pradeephead.vzf')
BLINK_MORPH_LEFT = 0 BLINK_MORPH_RIGHT = 1 ANGRY='smile1' #Action that will animate blink closing close_eye_left = vizact.morph(BLINK_MORPH_LEFT,1,0.1) close_eye_right = vizact.morph(BLINK_MORPH_RIGHT,1,0.1) closing_eyes = vizact.parallel(close_eye_left, close_eye_right) #Action that will animate blink opening open_eye_right = vizact.morph(BLINK_MORPH_RIGHT,0,0.1) open_eye_left = vizact.morph(BLINK_MORPH_LEFT,0,0.1) opening_eyes = vizact.parallel(open_eye_left, open_eye_right) #Action that will wait 1-5 seconds wait_blink = vizact.waittime(vizact.randfloat(1,5)) #Action that will blink indefinitely blinkAction = vizact.sequence( wait_blink, closing_eyes, opening_eyes, viz.FOREVER ) #Add blink action to avatar face.addAction(blinkAction,0) This action of eye blinks are working well 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) |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding morphs from FaceGen in peoplemaker | Frank Verberne | Vizard | 2 | 03-06-2013 11:24 AM |
Randomly and Continuously Change Avatar's Face Texture | Karla | Vizard | 4 | 08-22-2008 12:14 PM |
Adding a face to an existing avatar | dan12345 | Vizard | 1 | 01-29-2008 07:26 PM |
How to make avatar's eyes to blink when speaking | michelcm3 | Vizard | 12 | 01-15-2008 08:48 AM |
Problem with letting an avatar face towards another avatar | ghazanfar | Vizard | 2 | 03-21-2007 02:30 AM |