diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-06-08 19:41:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-06-08 19:41:31 +0400 |
commit | 3db1a55b2ddadaa6a0f14db338a3840927878e2e (patch) | |
tree | 475ed00dd898ccb6bc9b5175258fc7820696bc3f /source/blender/python/api2_2x/doc | |
parent | d1711b39729230aeb09f824a44c9303eb07d9363 (diff) |
added an optional window ID arg to Window.ViewLayers so you can set the layer for each viewport.
Diffstat (limited to 'source/blender/python/api2_2x/doc')
-rw-r--r-- | source/blender/python/api2_2x/doc/Window.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/doc/Window.py b/source/blender/python/api2_2x/doc/Window.py index 7624a983e79..d59b5ec9fa6 100644 --- a/source/blender/python/api2_2x/doc/Window.py +++ b/source/blender/python/api2_2x/doc/Window.py @@ -284,13 +284,17 @@ def EditMode(enable = -1, undo_msg = 'From script', undo = 1): because the normal mesh will be rebuilt based on its unchanged edit mesh. """ -def ViewLayers (layers = []): +def ViewLayers (layers = [], winid = None): """ Get and optionally set the currently visible layers in all 3d Views. @type layers: list of ints @param layers: a list with indexes of the layers that will be visible. Each index must be in the range [1, 20]. If not given or equal to [], the function simply returns the visible ones without changing anything. + @type winid: window id from as redurned by GetScreenInfo + @param winid: An optional argument to set the layer of a window + rather then setting the scene layers. For this to display in the 3d view + the layer lock must be disabled (unlocked). @rtype: list of ints @return: the currently visible layers. """ |