WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-21-2008, 01:25 PM
sscovil sscovil is offline
Member
 
Join Date: Apr 2008
Posts: 7
Bone Rotations

Hello,

When I run the following code, I don't get 0,0,0 output as I expect.

Code:
male = viz.add('vcc_male.cfg')
male.setEuler([0,0,0])
male.setPosition([0,0,0])
male_pelvis = male.getBone('Bip01 Pelvis')
male_pelvis.lock()
male_pelvis.setEuler([0,0,0],viz.ABS_PARENT)
male_pelvis.setEuler([0,0,0],viz.ABS_GLOBAL)

print male_pelvis.getName()
print male_pelvis.getEuler(viz.ABS_PARENT)
print male_pelvis.getEuler(viz.ABS_GLOBAL)
print '\n'
Even if I add a 'male_pelvis.setEuler([0,0,0],viz.AVATAR_WORLD)' to it, it gives different numbers but still not 0,0,0. I'm thinking I don't understand how it works. Can you explain to me how the different 'rotation spaces' work, and why this isn't outputting 0,0,0?

Thanks,

Stephen
Reply With Quote
 


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
Locking every bone of a character Frank Verberne Vizard 2 03-17-2008 10:21 AM
vcc avatars: defining bone length bjgold Vizard 1 08-08-2007 11:24 AM
Avatar bone rotations respect to world MiamiTodd Vizard 3 02-14-2006 10:41 AM
rotations in vizard david Vizard 7 02-24-2005 09:57 AM
vizard rotations duda Vizard 5 09-03-2003 02:31 PM


All times are GMT -7. The time now is 10:35 AM.


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