View Single Post
  #10  
Old 02-03-2005, 10:49 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
It might be possible. Startup 2.5 and check the value of the following in the interactive window:
Code:
viz._WIN_VIZ_PATH
It should point to "C:\Program Files\Vizard25" or wherever you installed 2.5

Python doesn't support the one line if/else. If you can guarentee that the value of the boolean will always be either 0 or 1 you could do the following:
Code:
x = [z,y][isBoolean]
Otherwise you could create your own function:
Code:
def ifelse(boolean,trueVal,falseVal):
	if boolean:
		return trueVal
	return falseVal

x = ifelse(isBoolean,y,z)
Reply With Quote