WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   size of avatar (https://forum.worldviz.com/showthread.php?t=2519)

Veronika 02-14-2010 11:15 PM

size of avatar
 
Hello,

how find I size of avatar, which I loaded using the command:

Code:

avatar=viz.add('male.cfg')
I mind its size, height, etc.

Thanks

Jeff 02-18-2010 11:27 AM

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)


johnallen 07-30-2014 04:12 AM

Thanks, that was helpful.

Can this be found using Inspector at all? That would be the perfect place for it.

Jeff 07-30-2014 01:29 PM

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.


All times are GMT -7. The time now is 09:12 PM.

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