JB_HP_Viz
04-09-2015, 01:55 PM
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?
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_mouseKe yTracker))
Thank you
John
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?
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_mouseKe yTracker))
Thank you
John