UI

Over the past couple of weeks I have been following these Python discussions and trying to make some sense of Python.

Here is my first attempt at a UI.
http://www.door3.org/UI1.zip
I should note here that it does not actually do anything…

I hoped to be able to select methodically through the empties controlling an armature, but woe is me, Blender does not allow for that.

I went ahead and finished it anyway to learn the language. I did not polish it to any great degree because …well…it does not do anything after all.

It is a 1.6m download so you guys with wire modems might want to go get a cup of coffee while it comes in.

Comments and critisims are welcome, I hope you enjoy it and that it will be of benifit to others working on similar issues.

Neat ! :smiley: :smiley: :smiley:
And it’s a chica.

Wish it did something now…

I like the buttons-train!
:slight_smile:

Just an advice , add these lines


#This script looks for its images 
#in a directory where the blenderfile
# is....
#
import Blender
from Blender.Draw import *
from Blender.BGL import *

sep='\\'     #nt
#or sep='/'  #posix

rc=Blender.Get('filename')
l=rc.split(sep)
rc=rc.replace(l[-1],'')
print rc
...

and in the bitmap code replace:

g0_bitmap, g0_width, g0_height = read_tgafile(r'c:\d3	est.tga')

by:

g0_bitmap, g0_width, g0_height = read_tgafile( rc+'test.tga')

Good call JMS…thanks!