Do you want to track the physical position/rotation of the users head, or the virtual (viewpoint) position/rotation? Either way, your code would look something like this:
Code:
#Can be main view or tracking sensor
head = viz.MainView
def GetHeadInfo():
pos = head.getPosition()
euler = head.getEuler()
#Do something with pos/euler data
vizact.ontimer(0,GetHeadInfo)
You can either completely hide the Vizard window, or minimize it. Here is some code that can do both
Code:
import win32gui
SW_HIDE = 0
SW_MINIMIZE = 6
#This will completely hide the window
win32gui.ShowWindow(viz.window.getHandle(),SW_HIDE)
#This will just minimize the window to the task bar
win32gui.ShowWindow(viz.window.getHandle(),SW_MINIMIZE)