WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Linking problem (https://forum.worldviz.com/showthread.php?t=1882)

nlfrnassimi 03-04-2009 08:29 PM

Linking problem
 
Hi everyone,

I have created a menu. I want to be able to link the menu to other vizard file.

For example when I click on cross using zebra line I want to go to another vizard file.


Here is my menu:


import viz

viz.go()

import vizinfo
info = vizinfo.add('MENU PAGE')

viz.clearcolor(viz.SKYBLUE)

#create main menu object
import vizmenu
menu = vizmenu.add()

#Palce menu in center
menu.setAlignment(vizmenu.LEFT)

#Create 2 menu objects
Animation = menu.add ('Animation')
VR = menu.add('VR Application')

#Add drop list to Animation
AnimationDropDown1 = Animation.add(vizmenu.MENU, 'Cross road using zebra line')
AnimationDropDown2 = Animation.add(vizmenu.MENU, 'Cross road using traffic light')
AnimationDropDown3 = Animation.add(vizmenu.MENU, 'Cross road by getting help')

#Add drop list to VR
VRDropDown1 = VR.add(vizmenu.MENU, 'Cross road using zebra line')
VRDropDown2 = VR.add(vizmenu.MENU, 'Cross road using traffic light')
VRDropDown3 = VR.add(vizmenu.MENU, 'Cross road by getting help')

Jeff 03-10-2009 02:55 PM

Sorry, I'm not quite sure what you are trying to do. Would switching from one scene to another based on a menu selection work for your scenario


All times are GMT -7. The time now is 01:53 PM.

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