View Single Post
  #4  
Old 12-06-2016, 11:39 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Try using either the node.getTransform command or the node.getChild command with the viz.CHILD_REPLACE_TRANSFORM flag:

Code:
import viz
viz.go()

scene = viz.addChild('scene.osgb')

#Get a linkable for controlling a sub-transform of the node
target = scene.getTransform('Target')

#Create a new Vizard <node3d> object from the underlying scene graph node
#target = scene.getChild('Target',flags=viz.CHILD_REPLACE_TRANSFORM)

print target.getPosition(viz.ABS_GLOBAL)
Reply With Quote