You can use the
parent command to parent the panel to
viz.SCREEN and specify the scene number. To remove a panel you can use the
remove() command:
Code:
import viz
import vizdlg
import vizact
viz.go()
panel = vizdlg.Panel(padding=15,border=False)
panel.addItem(viz.addText('Panel for scene 2'))
panel.background.alpha(0.6)
panel.background.color(viz.BLACK)
panel.parent(viz.SCREEN,scene=2)
panel.setPosition(0.4,0.6)
panel.setScale([2,2,2])
gallery = viz.addChild('gallery.ive')
court = viz.addChild('court.ive',scene=2)
vizact.onkeydown('1',viz.scene,1)
vizact.onkeydown('2',viz.scene,2)
vizact.onkeydown('3',panel.remove)