View Single Post
  #4  
Old 02-01-2012, 09:48 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
When the parent of the quad is viz.ORTHO you can specify the subwindow to add the quad to with the scene argument:

Code:
import viz
viz.go()

viz.addChild('gallery.osgb')

subWindow = viz.addWindow()
blackScreen = viz.addTexQuad(parent=viz.ORTHO,scene=subWindow,scale=[500]*3,color=viz.BLACK)
blackScreen.alpha(0.0)

vizact.onkeydown(' ',blackScreen.runAction,vizact.fadeTo(1.0,time=2.0))
Reply With Quote