<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
At the moment Window.ViewLayer() and object.later use a different type
of variables and therefor cant be interchanged.<br>
<br>
ob.layer is a flag and Window.ViewLayer() is a list<br>
There realy shouldent be any issues with<br>
<i>I want me new object to be on the current visible layers, or -
change my object to the visible layers.<br>
<br>
</i>At the moment I have got around this by converting  this list into
a flag.<br>
<br>
    # Get the layer flag, this should realy be a part of blender.<br>
    layerFlag = 0<br>
    for l in Window.ViewLayer():<br>
        layerFlag |= 2 ** l-1 # Get the flag of the layer index<br>
    ob.layer = layerFlag<br>
<br>
Mabe there needs to be a flag option for ViewLayer<br>
Window.ViewLayer(flag=1)<br>
<br>
Is this acceptable?<br>
- Cam<br>
<br>
</body>
</html>