WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-14-2009, 12:34 PM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
Code:
#easy way
target = viz.addGroup(pos=[1,0,1])
root = viz.addGroup(pos=[6,1,3])
helper = viz.addGroup(parent=root)
helper.setPosition(target.getPosition(), viz.ABS_GLOBAL)
print helper.getPosition() #mode defaults to viz.ABS_PARENT

#mathy way
#T=OR so T(1/R)=0
T = target.getMatrix()
R = root.getMatrix()
O = T * R.inverse() 
print O.getTrans()
__________________
Paul Elliott
WorldViz LLC
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
creating multiple coordinate systems and making them visible jalvarez Vizard 1 02-27-2009 01:36 PM
Different coordinate system for plug-in and vizard API? reedev Plug-in development 4 12-10-2008 09:43 AM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 01:14 PM
avatars dig Vizard 4 09-20-2007 04:29 PM
Avatars in an array and link/unlink betancourtb82 Vizard 7 09-05-2006 05:06 PM


All times are GMT -7. The time now is 10:21 PM.


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