WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 07-02-2014, 12:52 AM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
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.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT -7. The time now is 07:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC