View Single Post
  #1  
Old 02-06-2009, 09:53 AM
DrunkenBrit DrunkenBrit is offline
Member
 
Join Date: Dec 2008
Location: England
Posts: 25
<node3d>.getPosition() returns [0,0,0] all the time...

Hi,

I create a simple scene in 3DSM, export as either WRL or IVE format. All the scene contains is a plane, a few boxes and a sphere.

All 3 shape objects are positioned away from the origin. When i try and get access to one of the shapes:

Code:
scene = viz.add(scene.ive')
scene.disable(viz.LIGHTING,'')

sphere = scene.getChild('Sphere01')

print "sphere pos: ", sphere.getPosition(viz.ABS_GLOBAL)
I've tried printing the positions of all other objects too and also tried using viz.REL_PARENT, viz.ABS_PARENT etc which also return [0,0,0]

Any reason why this is happening please?

Thanks,
DB
Reply With Quote