![]() |
|
|
|
#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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Avatar - size of the bones | rfam | Vizard | 1 | 01-26-2009 11:34 AM |
| Collision of an avatar with a quad | Frank Verberne | Vizard | 8 | 06-04-2008 10:44 AM |
| Looking through the eyes of an avatar | Frank Verberne | Vizard | 2 | 04-01-2008 06:52 AM |
| How to make avatar's eyes to blink when speaking | michelcm3 | Vizard | 12 | 01-15-2008 09:48 AM |
| size of anacapa avatar | alaa | Vizard | 0 | 04-25-2005 01:21 PM |