WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-26-2003, 12:46 PM
poolshark poolshark is offline
Member
 
Join Date: Sep 2003
Posts: 12
saving the position

is there a way to get an avatar's position in the environment without actually having global variables etc. Are the xyz coordinates attached to the avatars themselves.

so I can do something similar to avatar.getx() or something like that.
Reply With Quote
  #2  
Old 09-26-2003, 01:30 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Which avatars are you referring to?

For the cal3d avatars you would do the follwoing:

Code:
avatar = viz.add('male.cfg')
pos = avatar.get(viz.POSITION)
For the older avatars you would do the following:

Code:
import Avatar
avatar = Avatar.Person()
pos = avatar.coordinates()
Reply With Quote
  #3  
Old 09-26-2003, 01:52 PM
poolshark poolshark is offline
Member
 
Join Date: Sep 2003
Posts: 12
Traceback (most recent call last):
File "<string>", line 1, in ?
AttributeError: VizAvatar instance has no attribute 'get'

any suggestions?
Reply With Quote
  #4  
Old 09-26-2003, 01:57 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
sure, upgrade to the latest version
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


All times are GMT -7. The time now is 08:52 AM.


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