View Single Post
  #1  
Old 09-16-2009, 06:54 PM
atamasan atamasan is offline
Member
 
Join Date: Jul 2009
Posts: 26
Question I have a question about link data

Hi.
Now I finally solve my problem(I posted before).
But only one thing make me confused.
When I use link, source data is different from destination data.

Uh, for example....

Code:
sensor=viz.addSensor('patriot')
hand=viz.add('hand.cfg')
bone=hand.getBone('bone index 1-2')
bone.lock()
link=viz.link(sensor,bone)

def print(e):
    print sensor.getEuler(), bone.getEuler()
viz.callback(viz.UPDATE_EVENT,print)
bone is linked, so I think "sensor.getEuler() and bone.getEuler() are same data, but it's different.

Do you have any idea for this?

Thank you very much.
Reply With Quote