several window layer changing at once?

Hi

I try to change two 3D-windows layers same time with script but for some reason script only effect to the one of the 3D-window.


import Blender
scene = Blender.Scene.getCurrent()
l = []
scene.setLayers(l)
Blender.Window.Redarw()

Any help?

Take a look at http://www.blender.org/documentation/242PythonDoc/Window-module.html#ViewLayers .

Hi BeBraw

I was testing it but that too changes only one 3D window layer. Other 3D view layer stays as it was.