[Bf-python] Layer handling inconsistant
Stephen Swaney
sswaney at centurytel.net
Mon Apr 18 17:22:55 CEST 2005
On Mon, Apr 18, 2005 at 10:53:44AM -0400, Gilbert, Joseph wrote:
> 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().
I would rather see overloaded argument lists like this than flags to
change the return type of a method.
--
Stephen Swaney
sswaney at centurytel.net
More information about the Bf-python
mailing list