WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-09-2015, 02: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
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching between input devices setup in vizconnect and not using vizconnect JB_HP_Viz Vizard 1 01-20-2015 06:19 AM
Changing parent without changing absolute global position? The SundanceKid Vizard 2 05-23-2014 03:43 PM
Getting updated position Anastaggra Vizard 1 02-01-2014 01:15 AM
Mouse event: how to detect no mouse move event, how to set mouse position? Zhi Vizard 3 04-11-2011 07:25 PM
default start position erchrastil Vizard 2 06-23-2008 09:15 AM


All times are GMT -7. The time now is 05:35 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC