PDA

View Full Version : Biohead animation


Dave
02-15-2008, 01:26 AM
Hi – I am having problems making a biohead look at things.

With an ordinary Vizard avatar no problem:-

male = viz.add('male.cfg')
look_right = vizact.headto(-45,-30,0,15,'skel_Head')
male.addAction(look_right)

works a treat

However, if I attach a biohead:-

male = viz.add('male.cfg')
head = viz.addFace( 'biohead_talk.vzf' )
male.setFace( head, 'skel_Neck', 'skel_Head')
look_right = vizact.headto(-45,-30,0,15,'skel_Head')
male.addAction(look_right)

nothing happens

If I try and lock the head – head.lock() then I get an error message VizFace has no attribute lock.

I can perform the animation successfully by using the Neck bone – ie.

male = viz.add('male.cfg')
head = viz.addFace( 'biohead_talk.vzf' )
male.setFace( head, 'skel_Neck', 'skel_Head')
look_right = vizact.headto(-45,-30,0,15,'skel_Neck')
male.addAction(look_right)

but then the arms go with it – and I cannot seem to decouple the arms from the neck.

I know that it is probably a simple thing but how do I just move the biohead by itself or decouple the arms etc from the neck.

farshizzo
02-15-2008, 02:37 PM
Please have a look at the documentation for the setFace command. You are passing the head/neck bone arguments in reverse order. Either way, you don't even need to specify them, the default values should work. Simply change the line:male.setFace( head, 'skel_Neck', 'skel_Head')to:male.setFace(head)

Dave
02-17-2008, 06:13 AM
Thanks Farshizzo - thought it would be something simple that I was missing. In the actual routine I am using a different avatar body and so have non-default head and neck bone arguments, but putting them in the correct order works fine - thanks.