[Bf-python] Attribute casing

Ken Hughes khughes at pacific.edu
Tue Aug 16 17:47:31 CEST 2005


Stephen Swaney wrote:
> On Mon, Aug 01, 2005 at 08:29:50AM -0400, Gilbert, Joseph wrote:
> 
>>Yea I agree with stivs. The lowerUpperUpper is nice. My only preference
>>is that attribute names follow the User Interface convention naming (as
>>opposed to data structure names). 
> 
> This is a very good point!  Sometimes we need a reminder that our target
> audience for BPy is scripters and artists and not genius programmers
> such as ourselves who are intimately familiar with Blender internals.
> 
> IIRC, we actually renamed some vars in a submitted
> patch to match the UI, which makes this an actual BPy Principle!
> So, for the record, let's state it here:  BPy member names should match
> those shown in the UI whenever possible.

Sorry, was out-of-town when this thread was active and just wanted to 
revisit as I do tp_getset stuff (in sceneRender.c right now).  If I'm
adding an attribute for, say, the horizontal aspect ratio, I should use
the UI name and call it "aspX"?

Ken



More information about the Bf-python mailing list