PDA

View Full Version : Swapping VZF heads on the same avatar


vr_boyko
10-20-2004, 11:51 AM
Hi there,

I was wondering -- how do you "swap" one .vzf head with another on the same avatar?

For example, I have this neutral.vzf head for an avatar, and if I want his face to change to be happy.vzf -- how do I do so without having the head just superimpose itself onto the old neutral.vzf head?

(I defined a function in my class like this:

def face(self, facename):
self.head = viz.add(facename)
self.agent.face(self.head)
)

farshizzo
10-20-2004, 12:10 PM
Hi,

Have you tried adding the happy head as a morph target of the neutral head? That would probably be the best way. Either way, to swap heads simply make the old head invisible and set the new head as the face:neutral = viz.add('neutral.vzf')
happy = viz.add('happy.vzf')

avatar.face(neutral)

#Swap faces
neutral.visible(0)
avatar.face(happy)