View Single Post
  #1  
Old 04-09-2015, 01:55 PM
JB_HP_Viz JB_HP_Viz is offline
Member
 
Join Date: Jun 2014
Posts: 31
Reset to starting position when using Vizconnect

If I have a configuration like below and I would like to setup a way to remember the starting position and then be able to reset to that starting location if I move around.

So if I hit Key '1' and move around using keyboard and then I hit Key '2' and I fly around using Mouse/Keyboard. What is the code to reset to the starting position?

Code:
display = vizconnect.getDisplay()

keyTracker = vizconnect.getTracker('keyboard')
fly_mouseKeyTracker = vizconnect.getTracker('mouse_and_keyboard_flying')


vizact.onkeydown('1',display.setParent(keyTracker))
vizact.onkeydown('2',display.setParent(fly_mouseKeyTracker))
Thank you

John
Reply With Quote