![]() |
|
![]() |
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
In the script that imports the vizconnect config you'll want to get a handle to the display (which includes the viewpoint) and whatever trackers/transports you'll want to set as the parent of the display. Then you can change the display's parent through the code. Here's a simple example:
Code:
import viz import vizact import vizconnect vizconnect.go('vizconnect_config.py') viz.addChild('piazza.osgb') keyTracker = vizconnect.getTracker('keyboard') mouseKeyTracker = vizconnect.getTracker('mouse_and_keyboard_walking') display = vizconnect.getDisplay() vizact.onkeydown('1',display.setParent,keyTracker) vizact.onkeydown('2',display.setParent,mouseKeyTracker) |
#2
|
|||
|
|||
Thank you. Just tested, works great.
John |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
multi user environment tutorial | maya | Vizard | 0 | 11-23-2013 08:35 AM |
User keyboard input without halting the program | Zhi | Vizard | 2 | 06-23-2011 12:53 PM |
Controlling User Input | ohad | Vizard | 1 | 03-15-2010 05:16 PM |
User Input | Hodge1620 | Vizard | 2 | 11-17-2005 06:58 AM |
user input problem | Jerry | Vizard | 1 | 11-16-2005 03:15 PM |