[Bf-python] More Proposed API changes.

Ken Hughes khughes at pacific.edu
Mon Mar 12 23:08:10 CET 2007


Chris Want wrote:
> Toni Alatalo wrote:
>> i am concerned about having the module auto-imported though. "explicit 
>> is better than implicit". nothing like that is usually automagically 
>> 'there' in python. admittedly, as bpy is embedded, it makes sense that 
> 
> <snip>
> 
> Although I'm not strongly passionate about it, I'm against
> auto-import too. If we ever get to a point that we
> can load a Blender module outside of a Blender executable
> as a module in a regular python interpreter (i.e., if Blender
> is ever broken up into a shared graphics library or libraries)
> then this sloppy auto-import will be a hindrance since a lot
> of potentially usable scripts will be broken.

Ok, what about either (a) adding a "ADD NEW SCRIPT" menu option which is 
a blank text file except for a "import bpy" line at the start, (b) 
changing "ADD NEW" to include the import line by default, or (c) having 
a user pref setting for one or the other?  99% of the time I use a text 
file, it's for a script so one way or another I'd rather save typing 
that line.

Ken



More information about the Bf-python mailing list