WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   vizact speak (https://forum.worldviz.com/showthread.php?t=4609)

krimble 05-31-2013 04:11 AM

vizact speak
 
Hi all,
I'm trying to make one of the "Complete Character Pack" avatars to speak. The thing is I keep getting the same error message:

Loading File: avatar2\casual15_f_highpoly.cfg
** Load Time: 0.59 seconds
** ERROR: Bone with name '' does not exist
** WARNING: Cannot run speech action on avatar, no face or jaw bone was specified


Code:

female = viz.add("avatar2\\casual15_f_highpoly.cfg")
speech = vizact.speak('jfk.wav', threshold = .1, scale = 0.7, sync = True)
female.add(speech)

In the .cfg file I saw the 3 available morphs. The blinking and eyebrow morphs are working fine.
How do I get the mouth morph to work with the vizact.speak function?

Thank you!

Kind regards,
Jeroen Derks
MPI for Psycholinguistics Nijmegen

krimble 05-31-2013 04:50 AM

Found the solution:

add to cfg file of the characterPack Avatar:

Under Material section:

head_bone = Bip01 Head
neck_bone = Bip01 Neck
head_mesh = casual15_f_highpoly.CMF
speak_morph = casual15_f_highpoly_talk.CMF

TheSwaine 03-19-2015 12:48 AM

hi,

can you give a full example with the

head_bone = Bip01 Head

in the cfg file and how to use it in Vizard?

I need to rotate the head_bone with a custom avatar and dont want to change the code.

cheers
Swaine

Jeff 03-20-2015 11:20 PM

You can get a handle to an avatar bone in the Vizard script using the node3d:avatar.getBone command. Take a look at the animating bones tutorial for more on this.

The list of bones in the cfg file does not affect the getBone command.


All times are GMT -7. The time now is 02:59 AM.

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