PDA

View Full Version : vizact speak


krimble
05-31-2013, 04:11 AM
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

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 (http://docs.worldviz.com/vizard/#commands/node3d/avatar/getBone.htm) command. Take a look at the animating bones (http://docs.worldviz.com/vizard/#Tutorial__Animating_avatars_manually.htm) tutorial for more on this.

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