[Bf-python] Blender edit modes

Gilbert, Joseph T. jgilbert at tigr.ORG
Thu Jan 5 15:34:37 CET 2006


Completely agree.

-----Original Message-----
From: bf-python-bounces at projects.blender.org
[mailto:bf-python-bounces at projects.blender.org] On Behalf Of Toni
Alatalo
Sent: Thursday, January 05, 2006 6:51 AM
To: Blender Foundation Python list
Subject: Re: [Bf-python] Blender edit modes

On Thursday 05 January 2006 04:55, Campbell Barton wrote:
> Could we depricate Window.EditMode() in favor
> Window.Mode(Window.Modes['EDITMODE'])

i guess that style would be better, except i think as:
window.mode = Window.EDITMODE

.. as =, and not (), is the python assignment operator, and as
module/class 
members are dictionary items anyway, it is nicer to have
something.CONSTANT 
instead of constdict['CONSTANT'] .. also allows importing of constants
(like 
pygame has pygame.locals which is made for the exceptionally acceptable
* 
importing, so after 'from pygame.locals import *' you can just do if 
kbevent.val == SPACEKEY etc.)

> Any non logical action would raise an error.

the mode property setter could do that checking in the = using case.

> - Cam

~Toni
_______________________________________________
Bf-python mailing list
Bf-python at projects.blender.org
http://projects.blender.org/mailman/listinfo/bf-python



More information about the Bf-python mailing list