WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-15-2008, 01:26 AM
Dave Dave is offline
Member
 
Join Date: Jun 2007
Posts: 26
Biohead animation

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.
Reply With Quote
  #2  
Old 02-15-2008, 02:37 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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:
Code:
male.setFace( head, 'skel_Neck', 'skel_Head')
to:
Code:
male.setFace(head)
Reply With Quote
  #3  
Old 02-17-2008, 06:13 AM
Dave Dave is offline
Member
 
Join Date: Jun 2007
Posts: 26
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Animation Tracks.... k_iwan Vizard 2 03-26-2007 05:52 PM
Jumpy animation Elizabeth S Vizard 1 11-08-2006 02:11 PM
animation sequence pkhoosh Vizard 2 01-23-2006 08:03 AM
avatar animation problems jrodman Vizard 1 01-18-2006 09:12 AM
Making an avatar speak while performing an idling animation vr_boyko Vizard 1 10-05-2004 04:23 PM


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


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