WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-14-2010, 11:15 PM
Veronika Veronika is offline
Member
 
Join Date: Jan 2010
Posts: 22
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
Reply With Quote
  #2  
Old 02-18-2010, 11:27 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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)
Reply With Quote
  #3  
Old 07-30-2014, 04:12 AM
johnallen johnallen is offline
Member
 
Join Date: Nov 2013
Location: Canterbury, UK
Posts: 36
Thanks, that was helpful.

Can this be found using Inspector at all? That would be the perfect place for it.
Reply With Quote
  #4  
Old 07-30-2014, 01:29 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
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
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


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


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