View Single Post
  #8  
Old 07-30-2004, 11:08 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

You can run a vizard script from any programming environment. All you need to do is execute the following in the command line:

"C:\Program Files\Vizard20\bin\winviz.exe" "script.py" 0

The way to do this is different for each programming language, so you will have to look at the documentation for it. Here's an example of how to do it in python, however I don't recommend launching a vizard script within another vizard script.
Code:
import viz
import win32process

def startscript(filename):
	execCommand = viz._BIN_PRIMARY + ' "' + filename + '" 0'
	win32process.CreateProcess(None, execCommand, 
								  None, None, 1, 0, None, 
								  None, win32process.STARTUPINFO())

startscript('myscript.py')
Reply With Quote