[Bf-python] BpyMenus naming conventions

Matt Ebb matt at mke3.net
Fri Aug 20 03:33:38 CEST 2004


Hi,

I was adding a Python menu insertion point for Campbell's face select 
mode selection scripts, when I realised there don't seem to be any sort 
of guidelines for how we're naming these menu groups. I was adding the 
functionality in the 'Select' menu in face select mode in the 3D View, 
but what do I call it, for purposes of the "Group" string in the script 
file header? I can't call it 'Select' since there are loads of other 
Select menus in Blender that can potentially contain scripts.

What would seem to me as a logical and extensible formatting would be 
something like "View3DFaceselSelect" (Window space -> Mode -> Menu), 
but a) existing script Groups don't follow a system like that, and b) 
it's going to look quite ugly in the Scripts window menu.

So, what suggestions would you guys have? I personally think something 
like I just suggested above would be ok if there was an option to 
provide another human readable name for the scripts window, or (IMHO) 
better, a way to prevent script groups from showing up in the Scripts 
window menu. In time, as more and more integration happens, that 
Scripts window would be basically approaching containing every single 
menu in Blender, of which there are a hell of a lot. Especially for 
things like selecting in the 3D View that don't requite a GUI, I don't 
think it's necessary for them to appear in the Scripts window anyway. 
Could we perhaps leave the scripts window menu for the 'wizard' type 
scripts or those that don't appear elsewhere in the interface?

Looking forward to your thoughts,

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2355 bytes
Desc: not available
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20040820/b085e601/attachment.bin>


More information about the Bf-python mailing list