![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				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))
John  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			I'll respond here with example code early next week.
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Sounds good. 
		
		
		
		
		
		
		
		
	
	Thank you  | 
| 
		 
			 
			#4  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Attached is an example that illustrates the use of viewpoints with 
		
		
		
			vizconnect. You can reset the vizconnect viewpoint to a specified location.  | 
| 
		 
			 
			#5  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			The example works great. 
		
		
		
		
		
		
		
		
	
	Thank you.  | 
![]()  | 
	
	
		
  | 
	
		
  | 
			 
			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 |