sidebar features
sidebar content

Go Back   Blender Artists Forums > General Forums > Python & Plugins

Closed Thread
 
Thread Tools
The_Nerd's Avatar
The_Nerd The_Nerd is offline
Member
 
Join Date: May 2002
Posts: 193
I finished the script I was writing to create GUI's for Python scripts.

You can obtain it here:
www.restorides.com/~nerd/blender/gui_creator.py

However, me and my family are moving in a few days, and our server will no longer be active, so I would apprieciate it if someone would put this script in their webspace also, and post a link here. Thanks!

I hope you guys enjoy my script! Please post some feedback.

Thanks!

P.S. (Just thought, this probably should have been put under Python script development?)
#1   Old 02-Aug-04, 02:24   


ScooterL ScooterL is offline
Member
 
Join Date: May 2004
Posts: 87
Thanks for the contribution
#2   Old 02-Aug-04, 17:26   
MacBlender MacBlender is offline
Member
 
Join Date: Aug 2003
Location: Alberta, Canada
Posts: 388
I hate to see scripts dissappear so you got yourself a host.

http://www.angelfire.com/anime4/nuva...gui_creator.py

MacBlender
............................................
Scottish 3D artist in canada...

Always remember...
Its a KILT! Not a Skirt!
#3   Old 02-Aug-04, 17:42   
iluvblender's Avatar
iluvblender iluvblender is offline
Member
 
Join Date: Mar 2002
Location: Hyderabad, Andhra Pradesh, India
Posts: 785
Hi The_Nerd.

Cool script. Works great.

Thanks for sharing.

- Satish.
............................................
--------------------------------------------------------------------
...imagine...create....express...share...enjoy...
http://sites.google.com/site/satishgoda/blender

It's a poor workman who blames his tools.
#4   Old 02-Aug-04, 18:23   
The_Nerd's Avatar
The_Nerd The_Nerd is offline
Member
 
Join Date: May 2002
Posts: 193
Thanks MacBlender! You rock!

Also thanks to every one else for your comments.

Thanks to who ever moved this also, sorry to give you trouble!
#5   Old 02-Aug-04, 20:10   
RipSting's Avatar
RipSting RipSting is offline
Donating Member
 
Join Date: Mar 2002
Location: Oregon, USA
Posts: 1,011
Neat GUI script you made! It definitly is a plus that it's platform-independant...

It's funny, I was just updating my windows-only script so that it could load and save projects. Then I come here and see your script and that it already has all that functionality Good work!
............................................
The vectors!
The vectors are all wrong!!!
#6   Old 02-Aug-04, 23:06   
The_Nerd's Avatar
The_Nerd The_Nerd is offline
Member
 
Join Date: May 2002
Posts: 193
Sooo.... Can anyone help with mouse events? I know how to get the button events, is it possible to get the position to?
#7   Old 03-Aug-04, 00:54   
eeshlo's Avatar
eeshlo eeshlo is offline
Member
 
Join Date: Mar 2002
Posts: 1,075
Mouse position events are MOUSEX & MOUSEY, the value is then the x or y coordinate. This reminds me of the very first script of this kind lcreated long ago by NikolaTesla20, back in the days of blender.nl, called GUIwizard, it is even still online:
http://www.angelfire.com/nt/teklord/GUIWizard.htm
It might still be useful with a rewrite.
............................................
There is no excellent beauty that hath not some strangeness in the proportion.

Sir Francis Bacon (1561 - 1626)
#8   Old 03-Aug-04, 03:26   
malefico's Avatar
malefico malefico is offline
Member
 
Join Date: Nov 2001
Location: Argentina
Posts: 805
EXCELLENT SCRIPT!

I knew RipSting's was looking great but since I'm on a linux box, couldn't enjoy it.

Now, can I suggest a couple of things ?

It would be nice to have an indicator that we are in Move/Scale modes or even disable add button until you leave the mode.
I added a second object while having the first seletec and in Move mode, and I couldn't move/scale it until i got the first object out of Move mode.

Congratulations, your script rocks !
............................................
My studio: http://www.licuadorastudio.com
My blog: http://www.malefico3d.org
My latest project: http://mercator.licuadorastudio.com
#9   Old 03-Aug-04, 13:56   
MacBlender MacBlender is offline
Member
 
Join Date: Aug 2003
Location: Alberta, Canada
Posts: 388
Quote:
Originally Posted by The_Nerd
Thanks MacBlender! You rock!
hey save it for your script, its pretty cool and'll probably make the first BlODEd gui of mine.

MacBlender
............................................
Scottish 3D artist in canada...

Always remember...
Its a KILT! Not a Skirt!
#10   Old 04-Aug-04, 05:06   
Bennie Bennie is offline
 
Join Date: Apr 2002
Location: The Netherlands
Posts: 5
Gui_creator lets Blender 2.33a and 2.34 crash.

Windows error window shows and says OPENGL32.dll error

Why is this happening!!!
#11   Old 06-Aug-04, 18:49   
RipSting's Avatar
RipSting RipSting is offline
Donating Member
 
Join Date: Mar 2002
Location: Oregon, USA
Posts: 1,011
Quote:
Originally Posted by Bennie
Gui_creator lets Blender 2.33a and 2.34 crash.

Windows error window shows and says OPENGL32.dll error

Why is this happening!!!
It's probably not this script's fault or even Blender's. Try downloading and installing the latest video drivers for your graphics card.
............................................
The vectors!
The vectors are all wrong!!!
#12   Old 06-Aug-04, 20:25   
Ric's Avatar
Ric Ric is offline
Member
 
Join Date: Sep 2003
Posts: 343
My system also crashes with this .py script. (all other seem fine....) But I just need to know what it does, as I mentioned in another thread, I need a script to render and sort frames for 2d game animations. Can this be set up to do this?
............................................
Corporations don't need rights!
They only need a level playing field to compete on.
#13   Old 07-Aug-04, 23:19   
bob_holcomb's Avatar
bob_holcomb bob_holcomb is offline
Member
 
Join Date: Apr 2003
Location: Virginia
Posts: 387
Neat script. It crashes my windows box. Might be an OpenGL driver issue with winXP. Anyways. I noticed the scripts are not up any more. I've mirrored it here:

http://bane.servebeer.com/programmin...gui_creator.py

Cheers,

Bob
............................................
Halfway down the trail to Hell....
#14   Old 10-Aug-04, 03:12   
The_Nerd's Avatar
The_Nerd The_Nerd is offline
Member
 
Join Date: May 2002
Posts: 193
Sorry for all the people that get crashes... I'll see if I can find anything wrong. Well I am finally moved! So I think I will start working on the script again. Thanks for all the comments and suggestions.

Expect an updated GUI creator soon.

#15   Old 17-Aug-04, 15:28   
joeedh joeedh is offline
Member
 
Join Date: Feb 2004
Posts: 270
Quote:
Originally Posted by The_Nerd
Sooo.... Can anyone help with mouse events? I know how to get the button events, is it possible to get the position to?
I havn't read much of this thread, but. . .

As an important note: At least on Windows 2k, MOUSEX AND MOUSEY are NOT relative to the script window (they are relative to all of Blender)!! This means that they are USELESS, unless you
convert them, with the following lines of code:

#First the size of the window. . .
size= Buffer(GL_FLOAT, 4)
size= size.list
glGetFloatv(GL_SCISSOR_BOX, size) #THANKS TO Daniel Dunbar FOR THIS!!!!!!
mousex = val - size[0]
mousey = val - size[1]

Hmm. . .you know, I wonder why that works. . .it does, I've tested it extensivly, but shouldn't you need to know the script window's x,y pos, not it's size? Of course, I'm not even sure what GL_SCISSOR_BOX is. . .I got this from the doc browser script. . .

joeedh
............................................
see my animation/rigging blog at http://animateit.wordpress.com/
#16   Old 24-Aug-04, 04:19   
theeth's Avatar
theeth theeth is offline
Administrator
 
Join Date: Oct 2001
Location: Montreal, Canada
Posts: 11,079
MOUSEX and MOUSEY are relative to the whole blender window on all OSes.

GL_SCISSOR_BOX returns a 4 float list, the first two are X, Y position of the context (window) and the last two are width and height.

Just a bad choice for the variable name.

Martin
............................................
Life is what happens to you when you're busy making other plans.
- John Lennon
#17   Old 24-Aug-04, 13:21   
joeedh joeedh is offline
Member
 
Join Date: Feb 2004
Posts: 270
Quote:
Originally Posted by theeth
MOUSEX and MOUSEY are relative to the whole blender window on all OSes.

GL_SCISSOR_BOX returns a 4 float list, the first two are X, Y position of the context (window) and the last two are width and height.

Just a bad choice for the variable name.

Martin
No kidding.

By the way. . .uhh. . .why is MOUSX/Y this way? Anyone plan to fix it anytime soon? My computer's (with its tuhopuu sourcebase) power supply just burnt out, so it'll be a while before I'll be able to do any Blender hacking.

joeedh
............................................
see my animation/rigging blog at http://animateit.wordpress.com/
#18   Old 24-Aug-04, 23:03   
RipSting's Avatar
RipSting RipSting is offline
Donating Member
 
Join Date: Mar 2002
Location: Oregon, USA
Posts: 1,011
Quote:
Originally Posted by joeedh
By the way. . .uhh. . .why is MOUSX/Y this way? Anyone plan to fix it anytime soon?
What do you mean? x,y,w,h is the standard definition of a rectangular area.
............................................
The vectors!
The vectors are all wrong!!!
#19   Old 25-Aug-04, 14:57   
MacBlender MacBlender is offline
Member
 
Join Date: Aug 2003
Location: Alberta, Canada
Posts: 388
rip: i think he meant the whole relative to all of blender thing.
............................................
Scottish 3D artist in canada...

Always remember...
Its a KILT! Not a Skirt!
#20   Old 25-Aug-04, 21:54   
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:43.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists