<!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">
Stephen Swaney wrote:
<blockquote cite="mid20050418112255.A23910@ratbyte" type="cite">
  <pre wrap="">On Mon, Apr 18, 2005 at 10:53:44AM -0400, Gilbert, Joseph wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">ob.layer takes a single int as input. It looks like you want to set the ob.layer to a list of ints returned by viewLayer(). I think the best way to implement this is to have ob.setattr to parse a sequence instead of an "int" value. (see vector() in mathutils) That way ob.layer will accept a single int or a list of values. This approach would allow you to do ob.layer = ViewLayer().
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I would rather see overloaded argument lists like this than flags to
change the return type of a method.

  </pre>
</blockquote>
I dont think its ideal for have ob.layer accepting both formats of
layers is ideal.<br>
What if they want to see of the object is equel to the view layers?<br>
<br>
if ob.layer != Window.ViewLayer(): # Would Not work<br>
<br>
would need to do<br>
<br>
oldlayer = ob.layer<br>
ob.layer = Window.ViewLayer()<br>
visLayer = ob.layer<br>
ob.layer = oldlayer<br>
if oldLayer != visLayer: # This would work.<br>
    .....<br>
<br>
</body>
</html>