View Single Post
  #1  
Old 06-05-2013, 09:33 AM
Andy Andy is offline
Member
 
Join Date: Mar 2008
Location: Germany
Posts: 36
Link only one Axis

Hello,
I want to link the orientation of an mySensor with a node (box).
In my example I link the node with the MainView. Furthermore, I want to link the orientation of my sensor (src) with the node (dst) too. But not all axis, like in my example, I want to link only the orientation of the Y-axis of mySensor.
Is this possible?

Code:
import viz
viz.go()

box = viz.add('box.wrl', pos=[0,0,0])
plan = viz.add('tut_ground.wrl')

mySensor = viz.add( 'testtrack_all.dls' )

link = viz.link(viz.MainView, box, mask=viz.LINK_POS|viz.LINK_ORI)
link.postTrans([0,0,6])
viewLinkOp = link.preMultLinkable(mySensor, target=viz.LINK_ORI)
Reply With Quote