WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-17-2007, 10:08 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
Reply With Quote
Reply

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


All times are GMT -7. The time now is 09:11 AM.


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