View Single Post
  #4  
Old 05-13-2016, 03:26 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,465
Try getting handles to the mainwindow and just one subwindow. Then set their size and position:

Code:
mainWindow = viz.MainWindow
subWindow = viz.addWindow()

WINDOW_SIZE = [1.0/2.0,1.0]
mainWindow.setSize(WINDOW_SIZE)
mainWindow.setPosition([1.0/2.0,1])
subWindow.setSize(WINDOW_SIZE)
subWindow.setPosition([0,1])
You can reference the same window names for the different clients:

Code:
cave.addWall(BottomWall, mask=viz.CLIENT1, window=mainWindow)
cave.addWall(FrontWall, mask=viz.CLIENT1, window=subWindow)
cave.addWall(LeftWall, mask=viz.CLIENT2, window=mainWindow)
cave.addWall(RightWall, mask=viz.CLIENT2, window=subWindow)

Last edited by Jeff; 05-13-2016 at 07:45 AM. Reason: simplified code
Reply With Quote