PDA

View Full Version : Reset to starting position when using Vizconnect


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

Jeff
04-10-2015, 05:49 PM
I'll respond here with example code early next week.

JB_HP_Viz
04-21-2015, 11:40 AM
Sounds good.

Thank you

Jeff
04-22-2015, 01:41 PM
Attached is an example that illustrates the use of viewpoints with
vizconnect. You can reset the vizconnect viewpoint to a specified location.

JB_HP_Viz
04-30-2015, 01:58 PM
The example works great.

Thank you.