[Bf-taskforce25] Layout Files Code-Guidelines

Thomas Dinges dingto at gmx.de
Sun Aug 2 21:28:08 CEST 2009


Hi,
yes i would use these guidelines for all scripts with blender ui 
integration which are officially bundled with blender itself.

"MATERIAL_PT_material"
I just copied this from the current code, sure if this is changed i am 
fine with that.

I put some more info in the wiki, where to use the guidelines.

Campbell Barton schrieb:
> +1
>
> - In 2.4 we had nothing so strict like this but I'm happy to habe this in 2.5.
> - Does this apply to ALL scripts with UI's in blender- eg, render
> engine integration (should do I think, but could state in wiki)
> - MATERIAL_PT_material - this is more a C standard. the python string
> should be "material.material", but for now I think its ok to keep
> until the conversion is supported as it is with operators.
>
>
> On Sat, Aug 1, 2009 at 11:47 AM, Thomas Dinges<dingto at gmx.de> wrote:
>   
>> Hi everybody,
>> Python Layout files are new in 2.5. I think they have to be consistent
>> and easy to understand (code wise).
>> These files are also very interesting for the end user, they give them
>> the power to tweak their interface to their own needs.
>> I wrote some code guidelines for these files:
>> http://wiki.blender.org/index.php/Dev:Py/Blender2.5/Layouts/Guidelines
>>
>> Escpeceally the assignement names are important. We still have lot of
>> different ones of them. Try to keep them consistent makes it easier for
>> coders and users.
>>
>> Please read the guidelines and give me feedback on them. It would be
>> great to approve them to make them official.
>>
>> Regards,
>>
>> Thomas
>> _______________________________________________
>> Bf-taskforce25 mailing list
>> Bf-taskforce25 at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-taskforce25
>>
>>     
>
>
>
>   



More information about the Bf-taskforce25 mailing list