WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-20-2008, 11:18 AM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
displaymode() problem

I am using the ProcessUtil module to start a script from within another
script.

The main script is
Code:
from viz import *
import ProcessUtil

go(STEREO | HMD)

g = add('gallery.ive')
	
def onKeyDown(key):	
	if key == KEY_RETURN:
		ProcessUtil.runScript('foo.py')

viz.callback(viz.KEYDOWN_EVENT,onKeyDown)
and the script it runs (foo.py) is
Code:
from viz import *

displaymode(1280,480,16,60)

go(HMD | STEREO)

g = add('court.ive')
The problem is that each time you press RETURN to run foo.py,
when you exit from foo.py and return to the main script
the viewpoint is raised relative to what it was before foo.py was run.

If you comment out the displaymode line in foo.py the problem goes
away, but it will have to remain in the actual application I am using.
Any suggestions on how to fix this?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
export problem bazelaisr Vizard 2 05-28-2008 10:19 AM
5DT Data Glove 5 Ultra Problem bjgold Vizard 1 08-08-2006 04:08 PM
problem with female animations vmonkey Vizard 1 10-07-2005 10:36 AM
sound problem alaa Vizard 7 09-02-2005 01:13 PM
PROBLEM: Picture-in-Picture breaks textures?!? vcarlson Vizard 4 10-05-2004 04:22 PM


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


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