[Bf-python] Py Panels!

Campbell Barton cbarton at metavr.com
Wed Aug 4 05:00:06 CEST 2004


Gilbert This is awesome! I way to make python truely intergrate with 
blenders UI in a seemless way.
Cant say mutch more then imaging make humen..... my array/treemaker and 
beast style scripts beinf useable from a panel!.
- Cam\



Gilbert, Joseph wrote:

>I guess I could add something here....
>I have been working on using blender's panels as a GUI interface for scripts.  Currently there is a working implementation of python using the Draw module to create a customizable GUI interface (3dview panel) through the python API. There is access to all of the items that are found on normal panels.  
>Anyway the proposal is to change this setup so that multiple scripts can run in separate panels in the buttonswindow area. Script panels would act just like all other panels in the buttons window interface except that they would control python 'defs' (functions). Data could be added/returned from each GUI item. 
>Basically the way this works is that python will contain a dictionary of elements that show the layout of the panel you will draw. This layout is stored unitil the script context exits and can be modified. When a call to draw the panel in the buttons window occurs it will recieve it's drawing instructions from python instead of internal C code.
>This shouldn't take away from the Draw.register functions in any way (and it's magnificent coders :). It could be viewed as a different approach.
>There is a significant amount of modification of the current experimental code to do this effectively but I think it shouldn't take that long :).  
>Anyway I just wanted to add this to the discussion topics since it has now been brought up.
>
>________________________________
>
>From: bf-python-admin at blender.org on behalf of Ton Roosendaal
>Sent: Wed 7/28/2004 7:24 AM
>To: bf-python at blender.org
>Subject: [Bf-python] Py Panels!
>
>
>
>Hi,
>
>OOh, and I forget these two topics I'd like to see:
>
>1) The buttonswindow "Script" context was meant for Python to control 
>completely. With as exception the default available 'script link' Panel 
>of course. By default I like to see Python scripts assigning Panels 
>there, also in a way it allows many more Panels too (depending on 
>scripts).
>
>(BTW: floating panels in 3D window etc. are actually a violation of the 
>'non overlapping UI' concept in Blender. If possible, options should be 
>in the Buttonswindow. Only for specific cases we should do it with a 
>floating one; when context really is tied to the window for example.)
>
>2) I talked with Yafray team on a nicer way to integrate their code in 
>Blender. Right now the code is getting polluted too much with yafray 
>exceptions. We also have projects going on for support of Renderman or 
>Aqsis. For 2.35 we want to attempt to clean it up, and also make sure 
>the Yafray Panels get assigned/created/handled in a way that fits nice.
>Potentially, it could be done using Python too... something we like to 
>investigate.
>
>Thanks!
>
>-Ton-
>
>
>------------------------------------------------------------------------
>--
>Ton Roosendaal  Blender Foundation ton at blender.org 
>http://www.blender.org
>
>_______________________________________________
>Bf-python mailing list
>Bf-python at blender.org
>http://www.blender.org/mailman/listinfo/bf-python
>
>
>  
>


-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4851 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20040804/7b8ab851/attachment.bin>


More information about the Bf-python mailing list