[Bf-committers] re: Python and layers

Alexander Ewering blender at instinctive.de
Mon Oct 9 16:40:54 CEST 2006

On Tue, 10 Oct 2006, Campbell Barton wrote:

> Thanks Matt, this makes more sense now.
> Im not sure what the solution should be..
> scn1.Layers= scn2.Layers should never raise an error IMHO. so maybe let the 
> user effect the next 12 bits?
> That or allow the users to set it but  dont apply the setting of the last 12 
> bits.
> that means after scn1.Layers != scn2.Layers  which could be confusing :/.

If there is a way to "recode" the "=", "==" and "!=" operators in python (??),
they should all be recoded (for the scn.Layers case) to affect *and*
compare just the lower 20 bits. Then, all is well, and nothing in Blender
needs to be modified, + no potential crasher functionality is exposed to
Python coders.

| alexander ewering              instinctive mediaworks
| ae[@]instinctive[.]de   http://www[.]instinctive[.]de

More information about the Bf-committers mailing list