View Single Post
  #4  
Old 10-07-2010, 12:31 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The previous sample is incorrect. The following sample should do what you want:
Code:
import viz
viz.go()

gallery = viz.add('gallery.ive')

#add a subwindow
subWindow = viz.addWindow()
subWindow.setPosition([0,1])

#create info box in custom scene
import vizinfo
info = vizinfo.add('Info box in transparent window')
info.translate(0.05,0.95)
info.alignment(vizinfo.UPPER_LEFT)
info_scene = viz.addScene()
info._group.parent(viz.SCREEN,info_scene)

#add a clearWindow that displays the custom scene
clearWindow = viz.addWindow(view=viz.addView(scene=info_scene))
clearWindow.setClearMask(0)
clearWindow.setPosition([0,1])
clearWindow.setSize([1,1])
Reply With Quote