sidebar features
sidebar content

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

Reply
 
Thread Tools
Mariano's Avatar
Mariano Mariano is offline
Member
 
Join Date: Aug 2005
Posts: 129
1.3.3
New help system
Not fully coded batch mode for materials, but already working


Blender library 1.3.2
New library LOGIC, to store game logic bricks.
Maybe a final fix to the long filename bug ( I manage to place the library in "C:\Program Files\Blender Foundation\Blender\.blender\BlenderLib\" and works)
POSE and ACTION libs working great... i tested this and turned out very cool. Pose library does't need to reopen the .blend. Also despite the .blend extension saved poses are actually txt files, so dont try to open'em in Blender. This is to save the hassle of recoding everithing.
Some other errors fixed.

15 Fully Functional libraries now, still some little issues with the preview in IPO and Logic.

I havent got the time to update my site nor Blender stuff... sorry for that. Maybe in a couple of days I will.

Old New Features: New database system (is the filesystem actually), categories and subcategories (just regular folders, so you can rearrage things without the script). Load at 3d Cursor. Can now import a full folder of items at once, from any library. Author can choose a license text to add to the item, it will be displayed on open and more... check the image below






For change log go here:
http://uselessdreamer.byethost32.com...y_history.html

A .blend with custom backgrounds for the preview thumbs (place in your library folder)
http://blender-stuff.byethost32.com/.../library.blend
if you edit the worlds in this file you can have custom previews (with you logo or something) just dont change the name of the worlds

Blender Stuff Website (Lots of blender items to download):
http://blender-stuff.byethost32.com




With this script you can easily store and retrieve all your materials, objects, textures, etc.
You can also quickly share your stuff with other Blender users by using the built in import/
export functionality.

To use, place the script in your script folder and runit. On first run you have to select a folder for the library (if you choose "C:\" the library will be "C:\BlenderLib") and thats it... you can if you want use the preferences to store your personal data and get rid of warnings and tips that popup).

Please CHOOSE A FOLDER AS CLOSE AS YOUR ROOT AS POSIBLE, if you don´t you´ll sooner or later will run into errors. This is due some limitations in bpython.
............................................
My Python Scripts
http://uselessdreamer.byethost32.com/

Lots of Blender items to download
http://blender-stuff.byethost32.com/

Last edited by Mariano; 16-Jun-06 at 20:21.
#1   Old 25-Apr-06, 14:54   
Reply With Quote


pildanovak's Avatar
pildanovak pildanovak is offline
Member
 
Join Date: May 2004
Posts: 958
very nice, but somehow fell on generating a thumb. do you have a sample library? would be great.
#2   Old 25-Apr-06, 15:15   
Reply With Quote
Mariano's Avatar
Mariano Mariano is offline
Member
 
Join Date: Aug 2005
Posts: 129
It generates the thumb without user interaction and works for me... iva added a sample pack of items to import to the library...

Edit

You need at least a 3d view open along with the script window for it to work
............................................
My Python Scripts
http://uselessdreamer.byethost32.com/

Lots of Blender items to download
http://blender-stuff.byethost32.com/

Last edited by Mariano; 25-Apr-06 at 15:24.
#3   Old 25-Apr-06, 15:18   
Reply With Quote
BeBraw's Avatar
BeBraw BeBraw is offline
Member
 
Join Date: Jul 2005
Location: Nifland
Posts: 2,064
Hi

I found a feature(?). If you use alt-lmb on the script window, it is closed. I am using Blender 2.41.
............................................
Nothing to see here ... move along.
#4   Old 25-Apr-06, 15:32   
Reply With Quote
Mariano's Avatar
Mariano Mariano is offline
Member
 
Join Date: Aug 2005
Posts: 129
Quote:
Originally Posted by BeBraw
Hi

I found a feature(?). If you use alt-lmb on the script window, it is closed. I am using Blender 2.41.
Yeah sorry .. while developing i use middle mouse click (or alt-lmb)to exit the script...

............................................
My Python Scripts
http://uselessdreamer.byethost32.com/

Lots of Blender items to download
http://blender-stuff.byethost32.com/

Last edited by Mariano; 25-Apr-06 at 17:53.
#5   Old 25-Apr-06, 15:38   
Reply With Quote
pildanovak's Avatar
pildanovak pildanovak is offline
Member
 
Join Date: May 2004
Posts: 958
ok, took the time to test it now, i think it's really great.!!!....!.!.!
only i found some little bugs:
i reinstalled the script, but tried to link it to an already existing library. it failed(error - folder exists)
the middle mouse shouldn't be for quitting, i think..
the preview is bigger than used in the script, which causes antialiasing go wrong.
#6   Old 26-Apr-06, 19:04   
Reply With Quote
Vassilios Vassilios is offline
Member
 
Join Date: Apr 2006
Posts: 184
Hallo Mariano!

That works Great so far! ........Thanks!
....ofcourse needs some corrections like you say: Its a beta right now but i think it will be fully operational in a couple of days.
also your "Hotspots Python Script" is Great i use it all the Time!
What about a Hotspot Updated Script for new 2.42 Blender Version!
I mean the Python Script with the Icons in 3D Window View to Render..Play Animation....Select Camera ...and Scripts e.t.c
are you plan to make a New and Better Hotspots Script also with more Features?
That would be GREAT!!
SeeeYa

Last edited by Vassilios; 29-Jul-06 at 02:44.
#7   Old 27-Apr-06, 10:45   
Reply With Quote
chickencoop's Avatar
chickencoop chickencoop is offline
Member
 
Join Date: Mar 2004
Location: adelaide
Posts: 75
Its a great idea, but there are a lot of errors in your script, but fix those and you might be onto somthing
............................................
I cant help myself
#8   Old 27-Apr-06, 11:53   
Reply With Quote
Linny Linny is offline
Member
 
Join Date: Oct 2005
Location: Germany
Posts: 128
is anybody encountering problems with the filehoster? it allways gives me zero-length zip files. i tried it with firefox and with konqueror. allways with the same result.
#9   Old 29-Apr-06, 10:01   
Reply With Quote
AloRom AloRom is offline
Member
 
Join Date: Apr 2004
Posts: 23
Hi Mariano,

I have a problem using your script:

The first time I run it I have choosen the folder for the library. Your script have correctly created the BlenderLib and all the sub-folders.
The problem is the second time that I run the script. In the console are displayed the following errors:

Quote:
Using Python version 2.4
Traceback (most recent call last):
File "<string>", line 1681, in ?
File "<string>", line 155, in init
File "<string>", line 545, in get_categories
AttributeError: text file not found
What can I do to be able to use your script?
I'm on a Linux PC.

thank's in advance for your help.
#10   Old 29-Apr-06, 10:47   
Reply With Quote
3Dre 3Dre is offline
Member
 
Join Date: Mar 2002
Location: Almere, Netherlands
Posts: 104
Hi, Having problems with your script.
This is output in the console running it the first time:
I'm running
FedoraCore 5 x86_64
Python 2.4
Blender 241 x86_64


Using Python version 2.4
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/Andre/.blender/scripts/bpymodules/BPyRegistry.py", line 53, in ?
_CFG_DIR = Blender.sys.join(Blender.Get('datadir'), 'config')
TypeError: expected string argument
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/Andre/.blender/scripts/bpymodules/BPyRegistry.py", line 53, in ?
_CFG_DIR = Blender.sys.join(Blender.Get('datadir'), 'config')
TypeError: expected string argument
Traceback (most recent call last):
File "<string>", line 414, in gui
File "<string>", line 107, in first_setup
File "<string>", line 155, in init
File "<string>", line 545, in get_categories
AttributeError: text file not found
............................................
Keep up the blending.

3Dré

http://3dre.homelinux.com
#11   Old 29-Apr-06, 10:51   
Reply With Quote
tsel tsel is offline
Member
 
Join Date: Jan 2006
Location: Finland
Posts: 4
Can't download the file, maybe due to pop-up/ad blocker.

Any mirrors available?
#12   Old 29-Apr-06, 11:00   
Reply With Quote
[t0rc] [t0rc] is offline
Member
 
Join Date: Nov 2004
Posts: 96
Excellent idea, really looks like you've found something here. Keep it up.
#13   Old 29-Apr-06, 11:46   
Reply With Quote
Sanne's Avatar
Sanne Sanne is offline
Member
 
Join Date: Apr 2006
Posts: 483
Hi Mariano,

looks like a cool script, hoever, I had the same issues as AloRom and 3Dre (I'm also on Linux). It seems an os specific path separator crept in in line 121:
Code:
LIB_FOLDER = LibraryDir + LIB +"Lib\\"
Changing it to:
Code:
LIB_FOLDER = LibraryDir + LIB + "Lib" + os.sep
fixed the error for me.

Cheers, Sanne
#14   Old 29-Apr-06, 11:55   
Reply With Quote
narven's Avatar
narven narven is offline
Member
 
Join Date: Oct 2005
Location: Lisboa - Portugal
Posts: 220
where is the file to download??? there's nothing to download.. just pub :|
............................................
mysql_query("DELETE stupidity FROM earth") or die("Stupid");
http://www.narvenblog.com
#15   Old 29-Apr-06, 13:02   
Reply With Quote
jazzroy's Avatar
jazzroy jazzroy is offline
Member
 
Join Date: Jan 2003
Location: Torino - Italy
Posts: 465
there's a line at the bottom in red with something like "click here to download"
............................................
Riccardo Covino
#16   Old 29-Apr-06, 13:47   
Reply With Quote
3Dre 3Dre is offline
Member
 
Join Date: Mar 2002
Location: Almere, Netherlands
Posts: 104
Thanks Sanne. It's solves the first part.

After I run the script, I can select the folder.
It creates all the folders.
But there's an error in the console:
Quote:
Using Python version 2.4
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/Andre/.blender/scripts/bpymodules/BPyRegistry.py", line 53, in ?
_CFG_DIR = Blender.sys.join(Blender.Get('datadir'), 'config')
TypeError: expected string argument
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/Andre/.blender/scripts/bpymodules/BPyRegistry.py", line 53, in ?
_CFG_DIR = Blender.sys.join(Blender.Get('datadir'), 'config')
TypeError: expected string argument
If I quit Blender and restart it, it asks me again to choose a folder because the script thinks I run it for the first time.
It doesn't save some kind of config I think.
When I reselect the folder I get an error:

Quote:
Using Python version 2.4
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/Andre/.blender/scripts/bpymodules/BPyRegistry.py", line 53, in ?
_CFG_DIR = Blender.sys.join(Blender.Get('datadir'), 'config')
TypeError: expected string argument
Traceback (most recent call last):
File "<string>", line 414, in gui
File "<string>", line 92, in first_setup
OSError: [Errno 17] File exists: '/home/Andre/data/BlenderLib'
It doesn't help if I save my "user defaults"
............................................
Keep up the blending.

3Dré

http://3dre.homelinux.com

Last edited by 3Dre; 29-Apr-06 at 15:52.
#17   Old 29-Apr-06, 15:28   
Reply With Quote
youngbatcat youngbatcat is offline
Member
 
Join Date: Mar 2002
Posts: 2,037
OSX intell 10.4.6
===== Saturday, April 29, 2006 12:20:16 PM US/Eastern =====
Traceback (most recent call last):
File "blender_library.py", line 1681, in ?
File "blender_library.py", line 155, in init
File "blender_library.py", line 545, in get_categories
AttributeError: text file not found
#18   Old 29-Apr-06, 16:20   
Reply With Quote
jason's Avatar
jason jason is offline
Member
 
Join Date: Jan 2006
Location: usa
Posts: 873
hey this is great. how can you get at it from the 'scripts' button in blender? i put it in the scripts folder, but nothing happened.

im weak in this area btw. if you didn't notice :-)

-theblenderboy
#19   Old 29-Apr-06, 16:39   
Reply With Quote
Sanne's Avatar
Sanne Sanne is offline
Member
 
Join Date: Apr 2006
Posts: 483
3Dre,

yeah, my fix is for the 'AttributeError: text file not found' error, I don't get your other error. This part of your error
Code:
File "/home/Andre/.blender/scripts/bpymodules/BPyRegistry.py", line 53, in ? _CFG_DIR = Blender.sys.join(Blender.Get('datadir'), 'config') TypeError: expected string argument
indicates that the problem lies somewhere in the BPyRegistry.py script or in the calling of a function in this script from blender_library.py.

I had a quick look, but nothing jumped at me that could cause this, sorry. I hope Mariano will be able to help.

Cheers, Sanne
#20   Old 29-Apr-06, 16:42   
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spe: Python IDE for Blender released stani Python & Plugins 6 28-Feb-07 19:18
sflender2.5 BETA (SWF exporter) blender 2.36 only...(BUGFIX) eaguirre Python & Plugins 20 04-Jan-06 16:52
Blender on Dreamcast project thread: linux library help henrymop Basics & Interface 4 01-Dec-05 06:31
Can I store Blender Vertice selections? JoOngle Basics & Interface 8 13-Jul-04 21:56
Announcement:Python IDE for Blender stani Python & Plugins 4 28-May-03 18:28


All times are GMT. The time now is 18:59.


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