#1
|
|||
|
|||
size of avatar
Hello,
how find I size of avatar, which I loaded using the command: Code:
avatar=viz.add('male.cfg') Thanks |
#2
|
|||
|
|||
You can get the bounding box of an object and look at its dimensions.
Code:
import viz viz.go() ground = viz.add('tut_ground.wrl') male = viz.add('male.cfg') box = male.getBoundingBox() print box.size #show bounding box on avatar male.add('box.wrl',alpha=.2,pos=[0,box.height/2,0.05],scale=box.size) #Setup camera navigation import vizcam vizcam.PivotNavigate(center=[0,1,0],distance=5) |
#3
|
|||
|
|||
Thanks, that was helpful.
Can this be found using Inspector at all? That would be the perfect place for it. |
#4
|
|||
|
|||
Yes, if you click on an object in Inspector it will display the bounding box. You can see the bounding box dimensions in the status bar at the bottom of the window.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Avatar - size of the bones | rfam | Vizard | 1 | 01-26-2009 10:34 AM |
Collision of an avatar with a quad | Frank Verberne | Vizard | 8 | 06-04-2008 09:44 AM |
Looking through the eyes of an avatar | Frank Verberne | Vizard | 2 | 04-01-2008 05:52 AM |
How to make avatar's eyes to blink when speaking | michelcm3 | Vizard | 12 | 01-15-2008 08:48 AM |
size of anacapa avatar | alaa | Vizard | 0 | 04-25-2005 12:21 PM |