#1
|
|||
|
|||
Getting updated position
Hi all,
I am new to Vizard and still learning.. So, I am trying to move point of view from one position to another position using fluid movement (vizact.goto) and after the view point is moved to a new location, I need to get the the new coordinate of the view. I wrote the following code: viz.MainView.setPosition([10,2,3]) view = viz.MainView #grab the coordinate of main view seq1 = vizact.goto([10,2,15]),3,viz.SPEED, pivot = [0,2,0], ori_mask = viz.BODY_ORI) #execute action on key down vizact.onkeydown(' ', view.runAction, seq1) #get the current position after movement of view point x,y,z = view.getPosition() print "Your current position is", x,y,z The problem is, instead of getting the position of view after the goto command ([10,2,15]), the getPosition always return the original position. Is there any way that I can update the coordinate of the variable 'view' each time after an action is executed. Thank you very much for all your help. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Set Mouse Position | javadi | Vizard | 2 | 11-19-2013 04:59 AM |
How to pass only 1 axis of the position signal from the source to the dest in a LINK? | Zhi | Vizard | 2 | 04-04-2013 08:28 AM |
Getting Position | Lynnifer | Vizard | 1 | 07-16-2012 10:49 AM |
Dynamic Position and Radius of Sphere | hotshotiguana | Vizard | 1 | 03-23-2011 01:53 PM |
writing joystick position to a data file | Saz | Vizard | 3 | 12-17-2008 06:18 AM |